Skip to main content

tasks

superduper.jobs.tasks

Source code

callable_job​

callable_job(cfg,
function_to_call,
args,
kwargs,
job_id,
dependencies=(),
db: Optional[ForwardRef('Datalayer')] = None)
ParameterDescription
cfgconfiguration
function_to_callfunction to call
argspositional arguments to pass to the function
kwargskeyword arguments to pass to the function
job_idunique identifier for this job
dependenciesother jobs that this job depends on
dbdatalayer to use

Run a function in the database.

method_job​

method_job(cfg,
type_id,
identifier,
method_name,
args,
kwargs,
job_id,
dependencies=(),
db: Optional[ForwardRef('Datalayer')] = None)
ParameterDescription
cfguser config
type_idtype of component
identifieridentifier of component
method_namename of method to run
argspositional arguments to pass to the method
kwargskeyword arguments to pass to the method
job_idunique identifier for this job
dependenciesother jobs that this job depends on
dbdatalayer to use

Run a method on a component in the database.