How to add tasks with schedules in an already running scheduler. #275
-
Hi! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
There is an undocumented way for doing this. You can call Methods are defined here: Line 101 in d8237b8 Line 127 in d8237b8 These methods were in beta but now they can be officially added to docs. Docs will be updated soon.
This is true only for LabeledScheduleSource which operates on labels. But for schedule sources that support dynamic schedule declaration this is not true. As an example of such ScheuleSource you can take a look at |
Beta Was this translation helpful? Give feedback.
There is an undocumented way for doing this. You can call
schedule_by_*
methods on the task.Methods are defined here:
taskiq/taskiq/decor.py
Line 101 in d8237b8
taskiq/taskiq/decor.py
Line 127 in d8237b8
These methods were in beta but now they can be officially added to docs. Docs will be updated soon.
This is true only for LabeledScheduleSource which operates on labels. But for schedule sources that support dynamic schedule declaration this is not true. As an example of such ScheuleSource you can take a look at
RedisScheduleSource
.https://github.…