Skip to content

Commit

Permalink
Merge pull request #465 from dimastbk/issue179
Browse files Browse the repository at this point in the history
docs: fix signature in example
  • Loading branch information
dimastbk committed Aug 9, 2024
2 parents e79af9a + 0019dc7 commit a2b9626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a2b9626

Please sign in to comment.