Skip to content

Commit e875f16

Browse files
committed
feat: update readme
1 parent a979e2e commit e875f16

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ class TaskiqAdminMiddleware(TaskiqMiddleware):
3939
""""""
4040
async with httpx.AsyncClient() as client:
4141
await client.post(
42-
headers={"access-token": settings.taskiq_admin_access_token},
43-
url=urljoin(settings.taskiq_admin_url, f"/api/tasks/{message.task_id}/started"),
42+
headers={"access-token": TASKIQ_ADMIN_API_TOKEN},
43+
url=urljoin(TASKIQ_ADMIN_URL, f"/api/tasks/{message.task_id}/started"),
4444
json={
4545
"args": message.args,
4646
"kwargs": message.kwargs,
@@ -60,8 +60,8 @@ class TaskiqAdminMiddleware(TaskiqMiddleware):
6060
""""""
6161
async with httpx.AsyncClient() as client:
6262
await client.post(
63-
headers={"access-token": settings.taskiq_admin_access_token},
64-
url=urljoin(settings.taskiq_admin_url, f"/api/tasks/{message.task_id}/executed"),
63+
headers={"access-token": TASKIQ_ADMIN_API_TOKEN},
64+
url=urljoin(TASKIQ_ADMIN_URL, f"/api/tasks/{message.task_id}/executed"),
6565
json={
6666
"error": result.error
6767
if result.error is None

0 commit comments

Comments
 (0)