File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -78,12 +78,18 @@ taskiq_broker.task(
7878)
7979
8080# create scheduler object
81- scheduler= TaskiqScheduler(
81+ scheduler = TaskiqScheduler(
8282 broker = taskiq_broker,
8383 sources = [LabelScheduleSource(taskiq_broker)],
8484)
8585```
8686
87+ To run the scheduler, just use the following command
88+
89+ ``` bash
90+ taskiq scheduler module:scheduler
91+ ```
92+
8793Also, you can wrap your ** FastStream** application the same way (allows to use lifespan events and AsyncAPI documentation):
8894
8995``` python
@@ -105,7 +111,7 @@ taskiq_broker = AppWrapper(app)
105111# Code below omitted 👇
106112```
107113
108- Also, instead of using a final ` message ` argument, you can set a message callback to collect information right before sending:
114+ A little feature: instead of using a final ` message ` argument, you can set a message callback to collect information right before sending:
109115
110116``` python
111117async def collect_information_to_send ():
You can’t perform that action at this time.
0 commit comments