unionml.schedule.Schedule#
- class unionml.schedule.Schedule(type, name, expression=None, offset=None, fixed_rate=None, time_arg=None, inputs=None, activate_on_deploy=True, launchplan_kwargs=None)#
Data model for cron expression and fixed-rate schedules.
Attributes
Whether or not to automatically activate this schedule on app deployment.
A cron expression) or valid croniter schedule for e.g.
A
timedeltaobject representing fixed rate with which to run the workflow.Inputs to be passed into the scheduled launchplan.
Additional keyword arguments to pass to
flytekit.LaunchPlanDuration to offset the schedule, must be a valid ISO 8601 duration .
The name of the argument in the
workflowthat will receive the kickoff time of the scheduled launchplan.'trainer' or 'predictor' schedule type.
Name of the schedule.
- activate_on_deploy: bool = True#
Whether or not to automatically activate this schedule on app deployment.
- expression: Optional[str] = None#
A cron expression) or valid croniter schedule for e.g.
"@daily","@hourly","@weekly","@yearly".
- fixed_rate: Optional[timedelta] = None#
A
timedeltaobject representing fixed rate with which to run the workflow.
- launchplan_kwargs: Optional[dict] = None#
Additional keyword arguments to pass to
flytekit.LaunchPlan
- offset: Optional[str] = None#
Duration to offset the schedule, must be a valid ISO 8601 duration . Only used if
expressionis specified.
- time_arg: Optional[str] = None#
The name of the argument in the
workflowthat will receive the kickoff time of the scheduled launchplan.
- type: Union[str, ScheduleType]#
‘trainer’ or ‘predictor’ schedule type.