Skip to content

Commit 7a73077

Browse files
committed
docs: update README
1 parent 4a5fb13 commit 7a73077

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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+
8793
Also, 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
111117
async def collect_information_to_send():

0 commit comments

Comments
 (0)