Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Ganga decorators """
'ijob_handler', )
""" Complete single decorator to use for my offline Job patches.
- Function decorated with this decorator will undergoes extra type-check for the first argument. Expecting an int/str/Job so that the intjid can be extracted. - As a result, this can well be patched to Job class. - Because this deco is a subclass of `cache_to_file`, the rules for `force_reload` and `early_giveup` follows - By construction, the writing-to-cache will only be enabled if the status of job is final (i.e., completed / failed )
"""
## Redefine abstract method
## Validate the required intjid first
## Access to input_skip_write, depends on the current status # Late import to avoid circular-dependency
# self._isw = (not is_final) # If ongoing, skip write.
# print intjid, is_final
## Finally, return super
#------------------------------------------------------------------------------ |