What's Changed
- use coredis v5 pipelines by @Graeme22 in #51
Coredis dependency updated to new v5 release, which allows for maintaining type hints even when pipelining. Additionally, theTaskResult
object now contains additional information:worker_id
, the worker which ran the task, andtask_try
, the total number of tries. The web UI includes this information. - Add possibility to set a custom name for tasks and cron jobs by @espdev in #54
You can now specify a custom name when registering tasks/cron jobs. This is especially helpful when task definitions are nested or when usingWorker.enqueue_unsafe()
:The health check cron job run in the background is now called@worker.task(name="bar") async def foo(): ...
redis_health_check
. - Сheck main_task attribute when closing worker by @espdev in #53
- Test coverage increased in several places
- CLI now raises an error if you try to run with
--web
and the web module isn't installed
Full Changelog: v4.0.4...v4.1.0