Skip to main content
Version: 0.6

cron_job

superduper.components.cron_job

Source code

CronJob​

CronJob(self,
identifier: str,
upstream: Optional[List[ForwardRef('Component')]] = None,
db: dataclasses.InitVar[typing.Optional[ForwardRef('Datalayer')]] = None,
*,
schedule: str = '0 0 * * *') -> None
ParameterDescription
identifierIdentifier of the instance.
upstreamA list of upstream components.
dbDatalayer instance. Datalayer instance.
scheduleSchedule in cron format.

Run a job on a schedule.

Note that this feature deploys on superduper.io Enterprise.

FunctionCronJob​

FunctionCronJob(self,
upstream: Optional[List[ForwardRef('Component')]] = None,
db: dataclasses.InitVar[typing.Optional[ForwardRef('Datalayer')]] = None,
*,
identifier: str = '',
schedule: str = '0 0 * * *',
function: Callable) -> None
ParameterDescription
identifierIdentifier of the instance.
upstreamA list of upstream components.
dbDatalayer instance. Datalayer instance.
scheduleSchedule in cron format.
functionCallable to run

Run a function on a schedule.