pipen.job
Bases
xqute.job.Job
pipen._job_caching.JobCaching
The job for pipen
Attributes
cached
— Check if a job is cached</>jid
(int | str | none) — Get the jid of the job in scheduler system</>jid_file
(SpecPath) — The jid file of the job</>rc
(int) — The return code of the job</>rc_file
(SpecPath) — The rc file of the job</>retry_dir
(SpecPath) — The retry directory of the job</>script_file
— Get the path to script file</>signature_file
— Get the path to the signature file</>status
(int) — Query the status of the job
If the job is submitted, try to query it from the status file Make sure the status is updated by trap in wrapped script </>status_file
(SpecPath) — The status file of the job</>stderr_file
(SpecPath) — The stderr file of the job</>stdout_file
(SpecPath) — The stdout file of the job</>
method
__repr__
(
)
→ str
repr of the job
method
clean
(
retry=False
)
Clean up the meta files
Parameters
retry
(optional) — Whether clean it for retrying
method
prepare
(
proc
)
Prepare the job by given process
Primarily prepare the script, and provide cmd to the job for xqute to wrap and run
Parameters
proc
(Proc) — the process object
method
log
(
level
, msg
, *args
, limit=3
, limit_indicator=True
, logger=<LoggerAdapter pipen.core (WARNING)>
)
Log message for the jobs
Parameters
level
(int | str) — The log level of the recordmsg
(str) — The message to log*args
— The arguments to format the messagelimit
(int, optional) — limitation of the log (don't log for all jobs)limit_indicator
(bool, optional) — Whether to show an indicator saying the loghas been limited (the level of the indicator will be DEBUG)logger
(LoggerAdapter, optional) — The logger used to log