You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These brokers are not part of the core Taskiq library. They are maintained by other open‑source contributors. You can install them as a separate packages.
118
+
119
+
You can read more about parameters and abilities of these brokers in README.md of each repo.
Copy file name to clipboardExpand all lines: docs/available-components/result-backends.md
+45-4Lines changed: 45 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,19 +10,60 @@ This includes:
10
10
- return value;
11
11
- Execution time in seconds.
12
12
13
-
## DummyResultBackend
13
+
## Built-in result backends
14
+
15
+
### DummyResultBackend
14
16
15
17
This result backend doesn't do anything. It doesn't store results and cannot be used in cases,
16
18
where you need actual results.
17
19
18
20
This broker will always return `None` for any return_value. Please be careful.
19
21
20
-
## Redis result backend
21
22
22
-
This result backend is not part of the core taskiq library. You can install it as a separate package [taskiq-redis](https://pypi.org/project/taskiq-redis/).
23
+
## Official result backends
24
+
25
+
This result backends is not part of the core Taskiq library. But they are maintained by Taskiq developers. You can install them as a separate package.
These result backends are not part of the core Taskiq library. They are maintained by other open‑source contributors. You can install them as a separate packages.
Copy file name to clipboardExpand all lines: docs/available-components/schedule-sources.md
+49-4Lines changed: 49 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,12 @@ order: 4
5
5
# Available schedule sources
6
6
7
7
These objects are used to fetch current schedule for tasks.
8
-
Currently we have only one schedule source.
9
8
10
-
## RedisScheduleSource
9
+
## Official schedule sources
10
+
11
+
These schedule sources are not part of the core Taskiq library. But they are maintained by Taskiq developers. You can install them as a separate package.
12
+
13
+
### RedisScheduleSource
11
14
12
15
This source is capable of adding new schedules in runtime. It uses Redis as a storage for schedules.
13
16
To use this source you need to install `taskiq-redis` package.
-`kwargs` - key-word arguments to use when invoking the task.
57
61
-`labels` - additional labels to use when invoking the task.
62
+
-`schedule_id` - unique identifier of the schedule. If not specified, a random uuid will be generated.
58
63
59
64
To enable this source, just add it to the list of sources:
60
65
@@ -76,3 +81,43 @@ In order to resolve all labels correctly, don't forget to import
76
81
all task modules using CLI interface.
77
82
78
83
:::
84
+
85
+
### NATS schedule source
86
+
87
+
This source is capable of adding new schedules in runtime. It uses NATS as a storage for schedules.
88
+
To use this source you need to install `taskiq-nats` package.
89
+
90
+
```python
91
+
from taskiq_nats import NATSKeyValueScheduleSource
92
+
from taskiq.scheduler import TaskiqScheduler
93
+
94
+
95
+
broker =...
96
+
97
+
scheduler = TaskiqScheduler(
98
+
broker=broker,
99
+
sources=[NATSKeyValueScheduleSource(broker)],
100
+
)
101
+
```
102
+
103
+
This schedule source doesn't use `schedule` label on tasks. To add new schedules, you need to call `add_schedule` method on the source.
104
+
105
+
## Third-party schedule sources
106
+
107
+
These schedule sources are not part of the core Taskiq library. They are maintained by other open‑source contributors. You can install them as a separate packages.
0 commit comments