RockefellerArchiveCenter / aurora

A Django web application to receive, virus check and validate transfers of digital archival records, and allow archivists to appraise and accession those records.
http://projectelectron.rockarch.org/
MIT License
25 stars 6 forks source link

Duplicate cron runs #645

Closed helrond closed 5 months ago

helrond commented 5 months ago

Describe the bug

Multiple instances of a single cron job can run at the same time.

To reproduce

Steps to reproduce the behavior:

  1. Trigger a long-running cron
  2. Run the same cron
  3. Observe two running instances of the cron

Expected behavior

It is expected that there will only be one running instance of a cron job at a time. This is currently not the case.

Additional context

We might need to switch out the current cron library for a different one. If memory serves we ran into this problem with Pisces.