Skip to content

Commit 077375d

Browse files
committed
fixing mypy
1 parent 18d2e2f commit 077375d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/app/core/worker/functions.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import asyncio
22
import logging
3+
from typing import Any
34

45
import structlog
56
import uvloop
@@ -23,11 +24,11 @@ async def shutdown(ctx: Worker) -> None:
2324
logging.info("Worker end")
2425

2526

26-
async def on_job_start(ctx: Worker) -> None:
27+
async def on_job_start(ctx: dict[str, Any]) -> None:
2728
structlog.contextvars.bind_contextvars(job_id=ctx["job_id"])
2829
logging.info("Job Started")
2930

3031

31-
async def on_job_end(ctx: Worker) -> None:
32+
async def on_job_end(ctx: dict[str, Any]) -> None:
3233
logging.info("Job Competed")
3334
structlog.contextvars.clear_contextvars()

0 commit comments

Comments
 (0)