From f77868d86be26b76478290594f296c94be6c9548 Mon Sep 17 00:00:00 2001 From: Dmitriy Date: Fri, 9 Aug 2024 16:47:29 +0500 Subject: [PATCH] docs: fix signature in example --- examples/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/worker.py b/examples/worker.py index fcfc7f19..975b97c0 100644 --- a/examples/worker.py +++ b/examples/worker.py @@ -81,7 +81,7 @@ def exception_task(): async def example_exception_handler(exception: Exception, job: Job, job_controller: JobController) -> None: print(exception) print(job) - await job_controller.set_failure_status(job, f"Failed to run task {job.type}. Reason: {exception}") + await job_controller.set_failure_status(f"Failed to run task {job.type}. Reason: {exception}") @worker.task(task_type="exception_task", exception_handler=example_exception_handler)