File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 15
15
class Dispatcher :
16
16
"""A highlevel interface for the dispatch API.
17
17
18
- This class provides a highlevel interface to the dispatch API. It
18
+ This class provides a highlevel interface to the dispatch API.
19
+ It provides two channels:
20
+
21
+ One that sends a dispatch event message whenever a dispatch is created, updated or deleted.
22
+
23
+ The other sends a dispatch message whenever a dispatch is ready to be
24
+ executed according to the schedule.
25
+
19
26
allows to receive new dispatches and ready dispatches.
20
27
21
28
Example:
Original file line number Diff line number Diff line change @@ -174,6 +174,10 @@ def _update_dispatch_schedule(
174
174
Schedules, reschedules or cancels the dispatch based on the start_time
175
175
and active status.
176
176
177
+ For example:
178
+ * when the start_time changes, the dispatch is rescheduled
179
+ * when the dispatch is deactivated, the dispatch is cancelled
180
+
177
181
Args:
178
182
dispatch: The dispatch to update the schedule for.
179
183
old_dispatch: The old dispatch, if available.
You can’t perform that action at this time.
0 commit comments