etalab / rncs_worker_api_entreprise

API pour récupérer et mettre à disposition les données du Répertoire National du Commerce et des Société
https://entreprise.data.gouv.fr
MIT License
23 stars 13 forks source link

Set different cron time for daily jobs between environments to avoid conflicts #107

Closed brindu closed 5 years ago

brindu commented 5 years ago

Sidekiq Cron prevent the same job to be enqued multiple times at the same time and actually doesn't care about the active job's queue prefix we use to differentiate queues between instances environments. To fix this we just run the daily import in sandbox and production at different times.