Skip to content

Releases: seedofjoy/darq

0.7.0

25 May 13:40

Choose a tag to compare

  • Fork arq to project and merge it with darq (It was easier to rewrite arq than to write a wrapper)
  • Breaking change: Remove "magic" params from .delay. For enqueue job with special params added .apply_async.
  • Add watch-mode to CLI.
  • Fix: Now worker will not run cronjob if it's functions queue not match with worker's

0.6.0

08 Mar 08:33

Choose a tag to compare

  • Breaking change: Changed Darq constructor from single config param to separate params.
  • arq_function.coroutine now has .delay method.

0.5.0

03 Mar 16:33

Choose a tag to compare

  • Add on_job_prepublish(metadata, arq_function, args, kwargs) callback. metadata is mutable dict, which will be available at ctx['metadata'].

0.4.0

03 Mar 12:59

Choose a tag to compare

  • Add default_job_expires param to Darq (if the job still hasn't started after this duration, do not run it). Default - 1 day
  • Add expires param to @task (if set - overwrites default_job_expires)

0.3.1

02 Mar 16:17

Choose a tag to compare

Rewrite warm shutdown: now during warm shutdown cron is disabled, on second signal the warm shutdown will be canceled

0.3.0

27 Feb 16:01

Choose a tag to compare

  • Breaking change: on_job_prerun and on_job_postrun now accepts arq.worker.Function instead of the original function (it can still be accessed at arq_function.coroutine)

0.2.1

26 Feb 17:44

Choose a tag to compare

  • Fix add_cron_jobs method. Tests added.

0.2.0

26 Feb 15:45

Choose a tag to compare

  • Add on_job_prerun(ctx, function, args, kwargs) and on_job_postrun(ctx, function, args, kwargs, result) callbacks.

0.1.0 (2020-02-26)

26 Feb 09:04

Choose a tag to compare

  • Breaking change: Jobs no longer explicitly get JobCtx as the first argument, as in 99.9% cases it doesn't need it. In future release will be possible to optionally pass JobCtx in some way.
  • Breaking change: All cron jobs should be wrapped in @task decorator
  • Directly pass functions to arq.Worker, not names.

0.0.3 (2020-02-25)

25 Feb 15:41

Choose a tag to compare

  • .delay() now returns arq_redis.enqueue_job result (Optional[Job])
  • Add py.typed file
  • Fixed add_cron_jobs typing