Skip to main content

job

superduperdb.jobs.job

Source code

job​

job(f)
ParameterDescription
ffunction to be decorated

Decorator to create a job from a function.

ComponentJob​

ComponentJob(self,
component_identifier: str,
type_id: str,
method_name: str,
args: Optional[Sequence] = None,
kwargs: Optional[Dict] = None,
compute_kwargs: Dict = {})
ParameterDescription
component_identifierunique identifier of the component
type_idtype of the component
method_namename of the method to be called
argspositional arguments to be passed to the method
kwargskeyword arguments to be passed to the method
compute_kwargsArguments to use for model predict computation

Job for running a class method of a component.

FunctionJob​

FunctionJob(self,
callable: Callable,
args: Optional[Sequence] = None,
kwargs: Optional[Dict] = None,
compute_kwargs: Dict = {})
ParameterDescription
callablefunction to be called
argspositional arguments to be passed to the function
kwargskeyword arguments to be passed to the function
compute_kwargsArguments to use for model predict computation

Job for running a function.

Job​

Job(self,
args: Optional[Sequence] = None,
kwargs: Optional[Dict] = None,
compute_kwargs: Dict = {})
ParameterDescription
argspositional arguments to be passed to the function or method
kwargskeyword arguments to be passed to the function or method
compute_kwargsArguments to use for model predict computation

Base class for jobs. Jobs are used to run functions or methods on.