Skip to content

Releases: seedofjoy/darq

v0.11.2

18 Jan 10:50
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.11.1...v0.11.2

v0.11.1

30 Nov 13:23
Compare
Choose a tag to compare
  • Add Python 3.11 support (with evo-aioredis dependency instead of aioredis)
  • Remove pydantic dependency
  • Remove aioredis from dependencies to allow choose between aioredis and evo-aioredis - fork with Python 3.11 compatability

v0.11.0

03 Aug 10:05
677500b
Compare
Choose a tag to compare
  • Added ability to optionally pass ctx to the task, like this:
@task(with_ctx=True)
def foobar(ctx):
    log.info('Foobar try %s', ctx['job_try'])

ctx contains: job_id, job_try, enqueue_time, score, metadata + all worker's ctx (including custom context which can be passed via on_startup). Thanks to @kindermax (#426)!

v0.10.2

03 Feb 15:50
Compare
Choose a tag to compare
  • Add proper typing for functions wrapped with the @task decorator. Mypy will now check that parameters are passed correctly when calling func() and func.delay()

v0.10.1

03 Feb 15:13
Compare
Choose a tag to compare
  • Add sentinel_timeout (defaults to 0.2) param to RedisSettings

0.10.0

09 Jul 06:59
Compare
Choose a tag to compare

Breaking change: Rename darq.worker.Function to darq.worker.Task
Made job to task naming migration
Add max_jobs parameter to CLI (thanks to @antonmyronyuk)
Fixed bug with expires argument: default_job_expires could not be replaced with None in @task or .apply_async

0.9.0

24 Jun 11:09
Compare
Choose a tag to compare

Breaking change: Add scheduler_ctx param to on_scheduler_startup and on_scheduler_shutdown to share data between this callbacks. It already has ctx['redis'] - instance of ArqRedis

0.8.0

22 Jun 07:23
Compare
Choose a tag to compare
  • Breaking change: Changed CLI command format. Before: darq some_project.darq_app.darq. Now: darq -A some_project.darq_app.darq worker
  • Breaking change: Scheduler (cron jobs) now run's seperate from worker (see darq scheduler command)
  • Breaking change: Changed some function signatures (rename arguments)
  • Breaking change: Remove redis_pool param from Darq app
  • Add on_scheduler_startup and on_scheduler_shutdown callbacks

0.7.2

18 Jun 15:05
Compare
Choose a tag to compare
  • Fix some types (cron, OnJobPrepublishType)
  • on_job_prerun now runs before "task started" log and on_job_postrun now runs after "task finished" log

0.7.1

25 May 14:53
Compare
Choose a tag to compare

.apply_async: Make args and kwargs arguments optional