Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Collection of (fake) signals used to encode termination reason in `Run.returncode`.
====== ============================================================
signal error condition
====== ============================================================
125 submission to batch system failed
124 remote error (e.g., execution node crashed, batch system misconfigured)
123 data staging failure
122 job killed by batch system / sysadmin
121 job canceled by user
====== ============================================================
"""
Lost = _Signal(120, "Remote site reports no information about the job")
Cancelled = _Signal(121, "Job canceled by user")
RemoteKill = _Signal(122, "Job killed by batch system or sysadmin")
DataStagingFailure = _Signal(123, "Data staging failure")
RemoteError = _Signal(124, "Unspecified remote error,"
" e.g., execution node crashed"
" or batch system misconfigured")
SubmissionFailed = _Signal(125, "Submission to batch system failed.")
def __contains__(self, signal):
if (signal is not None and 120 <= int(signal) <= 125):
return True
else:
return False
def __getitem__(self, signal_num):
if signal_num == 120:
return Signals.Lost
elif signal_num == 121:
signal error condition
====== ============================================================
125 submission to batch system failed
124 remote error (e.g., execution node crashed, batch system
misconfigured)
123 data staging failure
122 job killed by batch system / sysadmin
121 job canceled by user
====== ============================================================
"""
Lost = _Signal(120, "Remote site reports no information about the job")
Cancelled = _Signal(121, "Job canceled by user")
RemoteKill = _Signal(122, "Job killed by batch system or sysadmin")
DataStagingFailure = _Signal(123, "Data staging failure")
RemoteError = _Signal(124, "Unspecified remote error,"
" e.g., execution node crashed"
" or batch system misconfigured")
SubmissionFailed = _Signal(125, "Submission to batch system failed.")
def __contains__(self, signal):
if (signal is not None and 120 <= int(signal) <= 125):
return True
else:
return False
def __getitem__(self, signal_num):
if signal_num == 120:
return _Signals.Lost
elif signal_num == 121:
return _Signals.Cancelled
====== ============================================================
signal error condition
====== ============================================================
125 submission to batch system failed
124 remote error (e.g., execution node crashed, batch system
misconfigured)
123 data staging failure
122 job killed by batch system / sysadmin
121 job canceled by user
====== ============================================================
"""
Lost = _Signal(120, "Remote site reports no information about the job")
Cancelled = _Signal(121, "Job canceled by user")
RemoteKill = _Signal(122, "Job killed by batch system or sysadmin")
DataStagingFailure = _Signal(123, "Data staging failure")
RemoteError = _Signal(124, "Unspecified remote error,"
" e.g., execution node crashed"
" or batch system misconfigured")
SubmissionFailed = _Signal(125, "Submission to batch system failed.")
def __contains__(self, signal):
if (signal is not None and 120 <= int(signal) <= 125):
return True
else:
return False
def __getitem__(self, signal_num):
if signal_num == 120:
return _Signals.Lost
elif signal_num == 121:
misconfigured)
123 data staging failure
122 job killed by batch system / sysadmin
121 job canceled by user
====== ============================================================
"""
Lost = _Signal(120, "Remote site reports no information about the job")
Cancelled = _Signal(121, "Job canceled by user")
RemoteKill = _Signal(122, "Job killed by batch system or sysadmin")
DataStagingFailure = _Signal(123, "Data staging failure")
RemoteError = _Signal(124, "Unspecified remote error,"
" e.g., execution node crashed"
" or batch system misconfigured")
SubmissionFailed = _Signal(125, "Submission to batch system failed.")
def __contains__(self, signal):
if (signal is not None and 120 <= int(signal) <= 125):
return True
else:
return False
def __getitem__(self, signal_num):
if signal_num == 120:
return _Signals.Lost
elif signal_num == 121:
return _Signals.Cancelled
elif signal_num == 122:
return _Signals.RemoteKill
elif signal_num == 123:
return _Signals.DataStagingFailure
124 remote error (e.g., execution node crashed, batch system misconfigured)
123 data staging failure
122 job killed by batch system / sysadmin
121 job canceled by user
====== ============================================================
"""
Lost = _Signal(120, "Remote site reports no information about the job")
Cancelled = _Signal(121, "Job canceled by user")
RemoteKill = _Signal(122, "Job killed by batch system or sysadmin")
DataStagingFailure = _Signal(123, "Data staging failure")
RemoteError = _Signal(124, "Unspecified remote error,"
" e.g., execution node crashed"
" or batch system misconfigured")
SubmissionFailed = _Signal(125, "Submission to batch system failed.")
def __contains__(self, signal):
if (signal is not None and 120 <= int(signal) <= 125):
return True
else:
return False
def __getitem__(self, signal_num):
if signal_num == 120:
return Signals.Lost
elif signal_num == 121:
return Signals.Cancelled
elif signal_num == 122:
return Signals.RemoteKill
elif signal_num == 123:
return Signals.DataStagingFailure
elif signal_num == 124:
====== ============================================================
signal error condition
====== ============================================================
125 submission to batch system failed
124 remote error (e.g., execution node crashed, batch system misconfigured)
123 data staging failure
122 job killed by batch system / sysadmin
121 job canceled by user
====== ============================================================
"""
Lost = _Signal(120, "Remote site reports no information about the job")
Cancelled = _Signal(121, "Job canceled by user")
RemoteKill = _Signal(122, "Job killed by batch system or sysadmin")
DataStagingFailure = _Signal(123, "Data staging failure")
RemoteError = _Signal(124, "Unspecified remote error,"
" e.g., execution node crashed"
" or batch system misconfigured")
SubmissionFailed = _Signal(125, "Submission to batch system failed.")
def __contains__(self, signal):
if (signal is not None and 120 <= int(signal) <= 125):
return True
else:
return False
def __getitem__(self, signal_num):
if signal_num == 120:
return Signals.Lost
elif signal_num == 121:
return Signals.Cancelled
====== ============================================================
signal error condition
====== ============================================================
125 submission to batch system failed
124 remote error (e.g., execution node crashed, batch system misconfigured)
123 data staging failure
122 job killed by batch system / sysadmin
121 job canceled by user
====== ============================================================
"""
Lost = _Signal(120, "Remote site reports no information about the job")
Cancelled = _Signal(121, "Job canceled by user")
RemoteKill = _Signal(122, "Job killed by batch system or sysadmin")
DataStagingFailure = _Signal(123, "Data staging failure")
RemoteError = _Signal(124, "Unspecified remote error,"
" e.g., execution node crashed"
" or batch system misconfigured")
SubmissionFailed = _Signal(125, "Submission to batch system failed.")
def __contains__(self, signal):
if (signal is not None and 120 <= int(signal) <= 125):
return True
else:
return False
def __getitem__(self, signal_num):
if signal_num == 120:
return Signals.Lost
elif signal_num == 121:
return Signals.Cancelled
elif signal_num == 122:
====== ============================================================
signal error condition
====== ============================================================
125 submission to batch system failed
124 remote error (e.g., execution node crashed, batch system
misconfigured)
123 data staging failure
122 job killed by batch system / sysadmin
121 job canceled by user
====== ============================================================
"""
Lost = _Signal(120, "Remote site reports no information about the job")
Cancelled = _Signal(121, "Job canceled by user")
RemoteKill = _Signal(122, "Job killed by batch system or sysadmin")
DataStagingFailure = _Signal(123, "Data staging failure")
RemoteError = _Signal(124, "Unspecified remote error,"
" e.g., execution node crashed"
" or batch system misconfigured")
SubmissionFailed = _Signal(125, "Submission to batch system failed.")
def __contains__(self, signal):
if (signal is not None and 120 <= int(signal) <= 125):
return True
else:
return False
def __getitem__(self, signal_num):
if signal_num == 120:
return _Signals.Lost
`Run.returncode`.
====== ============================================================
signal error condition
====== ============================================================
125 submission to batch system failed
124 remote error (e.g., execution node crashed, batch system
misconfigured)
123 data staging failure
122 job killed by batch system / sysadmin
121 job canceled by user
====== ============================================================
"""
Lost = _Signal(120, "Remote site reports no information about the job")
Cancelled = _Signal(121, "Job canceled by user")
RemoteKill = _Signal(122, "Job killed by batch system or sysadmin")
DataStagingFailure = _Signal(123, "Data staging failure")
RemoteError = _Signal(124, "Unspecified remote error,"
" e.g., execution node crashed"
" or batch system misconfigured")
SubmissionFailed = _Signal(125, "Submission to batch system failed.")
def __contains__(self, signal):
if (signal is not None and 120 <= int(signal) <= 125):
return True
else:
return False
def __getitem__(self, signal_num):
if signal_num == 120:
"""
Collection of (fake) signals used to encode termination reason in `Run.returncode`.
====== ============================================================
signal error condition
====== ============================================================
125 submission to batch system failed
124 remote error (e.g., execution node crashed, batch system misconfigured)
123 data staging failure
122 job killed by batch system / sysadmin
121 job canceled by user
====== ============================================================
"""
Lost = _Signal(120, "Remote site reports no information about the job")
Cancelled = _Signal(121, "Job canceled by user")
RemoteKill = _Signal(122, "Job killed by batch system or sysadmin")
DataStagingFailure = _Signal(123, "Data staging failure")
RemoteError = _Signal(124, "Unspecified remote error,"
" e.g., execution node crashed"
" or batch system misconfigured")
SubmissionFailed = _Signal(125, "Submission to batch system failed.")
def __contains__(self, signal):
if (signal is not None and 120 <= int(signal) <= 125):
return True
else:
return False
def __getitem__(self, signal_num):
if signal_num == 120:
return Signals.Lost