ganga.GangaCore.GPIDev.Lib.JobTree.JobTree module

The jobtree object in Ganga gives you the possibility to organise jobs in a directory structure. Jobs are stored in the jobtree by their index and you can think of it as a softlink. This also means that jobs can be placed in several folders at the same time. If you remove a job from the registry the references in the jobtreee will also automatically disappear (because registry calls cleanlinks() method). The jobtree is persisted in between Ganga sessions.

ganga.GangaCore.GPIDev.Lib.JobTree.JobTree.const_lock

This is a context manager which acquires the const write lock on the object’s root object.

This lock acquires exclusive access over an object tree to prevent it from changing. Reading schema attributes on the object is still allowed but changing them is not. Only one thread can hold this lock at once.