Bogdanp / django_dramatiq

A Django app that integrates with Dramatiq.
https://dramatiq.io
Other
331 stars 77 forks source link

Disable Concurrent Execution #112

Open mutualtech opened 2 years ago

mutualtech commented 2 years ago

Hi, I'm trying to find a way to disable the concurrent execution from only one actor. Is it possible ? Thank you

Ecno92 commented 2 years ago

@mutualtech You can try to publish the tasks to a specific queue and then you run a worker which listens to that queue with 1 process with 1 thread.

In that way it can not execute concurrently.