@@ -34,12 +34,13 @@ The format of the schedule label is the following:
3434@broker.task (
3535 schedule = [
3636 {
37- " cron" : " * * * * *" , # type: str , either cron or time should be specified .
37+ " cron" : " */1 * * * *" , # type: str , either cron or time should be specified .
3838 " cron_offset" : None # type: str | timedelta | None , can be omitted .
3939 " time" : None # type: datetime | None , either cron or time should be specified .
4040 " args" : [], # type List[Any] | None, can be omitted.
4141 " kwargs" : {}, # type: Dict [ str , Any ] | None , can be omitted .
4242 " labels" : {}, # type: Dict [ str , Any ] | None , can be omitted .
43+ " schedule_id" : " every_minute" , # type: str | None , can be omitted .
4344 }
4445 ]
4546)
@@ -55,6 +56,7 @@ Parameters:
5556- ` args ` - args to use, when invoking the task.
5657- ` kwargs ` - key-word arguments to use when invoking the task.
5758- ` labels ` - additional labels to use when invoking the task.
59+ - ` schedule_id ` - unique identifier of the schedule. If not specified, a random uuid will be generated.
5860
5961To enable this source, just add it to the list of sources:
6062
0 commit comments