ganga.GangaCore.Lib.Checkers.CustomChecker module

User tool for writing custom check with Python. Make a file, e.g customcheck.py, In that file, do something like:

def check(j):
if j has passed:
return True
else:
return False

When the job is about to be completed, Ganga will call this function and fail the job if False is returned.

ganga.GangaCore.Lib.Checkers.CustomChecker.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.