Skip to content

Commit 18364bf

Browse files
authored
Merge branch 'master' into fix/license-classifier
2 parents 6185f40 + 4607283 commit 18364bf

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docs/available-components/middlewares.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ order: 5
77
Middlewares allow you to execute code when specific event occurs.
88
Taskiq has several default middlewares.
99

10-
### Simple retry middleware
10+
## Simple retry middleware
1111

1212
This middleware allows you to restart functions on errors. If exception was raised during task execution,
1313
the task would be resent with same parameters.
@@ -34,11 +34,11 @@ async def test():
3434

3535
`retry_on_error` enables retries for a task. `max_retries` is the maximum number of times,.
3636

37-
## Smart Retry Middleware
37+
## Smart retry middleware
3838

3939
The `SmartRetryMiddleware` automatically retries tasks with flexible delay settings and retry strategies when errors occur. This is particularly useful when tasks fail due to temporary issues, such as network errors or temporary unavailability of external services.
4040

41-
### Key Features:
41+
### Key Features
4242

4343
* **Retry Limits**: Set the maximum number of retry attempts (`max_retries`).
4444
* **Delay Before Retry**: Define a fixed delay or use additional strategies.
@@ -85,7 +85,7 @@ Use jitter and exponential backoff to avoid repetitive load peaks, especially in
8585

8686

8787

88-
### Prometheus middleware
88+
## Prometheus middleware
8989

9090
You can enable prometheus metrics for workers by adding `PrometheusMiddleware`.
9191
To do so, you need to install `prometheus_client` package or you can install metrics extras for taskiq.
@@ -119,7 +119,7 @@ broker = ZeroMQBroker().with_middlewares(
119119
After that, metrics will be available at port 9000. Of course, this parameter can be configured.
120120
If you have other metrics, they'll be shown as well.
121121

122-
### OpenTelemetry Middleware
122+
## OpenTelemetry Middleware
123123

124124
You can enable opentelemetry tracing for workers by adding `OpenTelemetryMiddleware` or using `TaskiqInstrumentor` (preferred).
125125

docs/framework_integrations/faststream.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ order: 3
44

55
# Taskiq + FastStream
66

7-
[FastStream](https://faststream.airt.ai/latest/) is a library that allows you to write consumers and producers for different message brokers almost like taskiq. But the difference is that taskiq is more focused on tasks for a specific project and more like celery but async, while FastStream is more focused on events and defining how different systems communicate with each other using distributed brokers.
7+
[FastStream](https://faststream.ag2.ai/latest/) is a library that allows you to write consumers and producers for different message brokers almost like taskiq. But the difference is that taskiq is more focused on tasks for a specific project and more like celery but async, while FastStream is more focused on events and defining how different systems communicate with each other using distributed brokers.
88

99
If you want to declare communication between different projects you can use taskiq, but it might be a bit more complex than using FastStream.
1010

@@ -29,4 +29,4 @@ app = FastStream(broker)
2929
taskiq_broker = BrokerWrapper(broker)
3030
```
3131

32-
You can read more about scheduling tasks for FastStream in the [FastStream documentation](https://faststream.airt.ai/latest/scheduling/?h=schedule).
32+
You can read more about scheduling tasks for FastStream in the [FastStream documentation](https://faststream.ag2.ai/latest/scheduling/?h=schedule).

0 commit comments

Comments
 (0)