Skip to content

Commit

Permalink
docs: add more context around queueing_locks
Browse files Browse the repository at this point in the history
  • Loading branch information
onlyann committed May 2, 2024
1 parent d91358e commit 4ca9337
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/howto/advanced/queueing_locks.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,9 @@ can define the value when you register the task:
def my_task(**kwargs):
...
```

`queueing_lock` allows a single job in `todo` status. Meanwhile, it allows multiple jobs to be in `doing` status.

To enforce that only one job runs at a time while limiting the queue size, you can combine `queueing_lock` with [lock](./locks.md).

You might also want to [schedule](./schedule.md) task jobs in the near future, which can be effective to throttle a task.

0 comments on commit 4ca9337

Please sign in to comment.