rr builtin classes¶
Classes available in the python main namespace of RR applications
rrCleanExit Class¶
- class _rr_builtins_.rrCleanExit¶
- Raising this Exception will halt the script, but not the action to which the script was attached (e.g. submission for on-submission scipts).
All other exceptions and errors will halt the script AND its parent action.
This class is available in:
rrServer
Example, switching between stopping a submission script or the entire submission in a rrSubmitter, on-submission script:
# Raising rrCleanExit inside a submission script halts the script, but not the submission def quit(abort_script=False, abort_submission=False) if abort_script: print('About to abort this script, but not the job submission') raise rrCleanExit() if abort_submission: print('About to abort submission: the job will not be sent to Royal Render') raise Exception('abort_submission was set to `True`')