Releases: thread/django-lightweight-queue
v4.4.0
Introduces commands to pause and resume queues with deadlines. Currently this is supported by the Redis backends.
While a queue is paused no jobs will be processed; if you want jobs to be dropped while the queue is paused you will need to clear the queue manually before it resumes.
This resale also updates the linters used to their latest versions and consequently now requires at least Python 3.6.1 (up from 3.6).
v4.3.2
Clarify that insertion ordering is preserved when bulk enqueueing.
v4.3.1
Fixes overriding of target queue for singly-enqueued tasks
This was a regression in v4.3.0.
v4.3.0
Support bulk enqueueing of jobs
Adds a new API task.bulk_enqueue
which supports enqueueing jobs in bulk. It is up to each backend to support this -- the default behaviour falls back to individual enqueueing of the jobs in a loop. Currently this is only any more efficient when using the Redis backends (where each batch becomes a single LPUSH
operation).
Usage looks like this:
with my_task.bulk_enqueue() as enqueue:
enqueue(the_ids=[42, 43])
enqueue(the_ids=[45, 46])
This is equivalent to:
my_task(the_ids=[42, 43])
my_task(the_ids=[45, 46])
v4.2.0
Adds a new setting LIGHTWEIGHT_QUEUE_REDIS_PASSWORD
for Redis connections which need a password.
v4.1.1
Fix queue_configurations not outputting cron details
v4.1.0
Adds type annotations.