Deferring a periodic job to multiple queues does not work as expected #289
Labels
Issue appropriate for: Occasional contributors 😉
This issue will be best tackled by people with a minimum of experience on the project
Issue contains: Some documentation 📚
This issues involves writing some documentation
Issue contains: Some Python 🐍
This issue involves writing some Python code
Issue contains: Some SQL 🐘
This features require changing the SQL model
Let's say I want per worker server periodic tasks. Naturally I'd be tempted to use per-server queues:
But, as I understand it, the
procrastinate_defer_periodic_job
function will refuse to defer a periodic job if a periodic job with the same name and same defer timestamp was already deferred, even if the periodic job is not deferred to the same queue as the one already deferred.Shouldn't the
procrastinate_periodic_defers
table include aqueue_name
column? And shouldn't the unique constraint beUNIQUE (task_name, queue_name, defer_timestamp)
rather thanUNIQUE (task_name, defer_timestamp)
?The text was updated successfully, but these errors were encountered: