Pcornel
Automation · Scheduling

Concurrency

Cheat sheet · https://pcornel.dk/topic.php?topic=5355

Back to the Topic

Answer

Concurrency in scheduling controls whether a job may start while its previous run is still running — allow, skip or queue — preventing overlapping runs from conflicting.

Remember

  • Decide whether to allow, skip or queue overlapping runs.
  • Overlaps cause conflicts on shared resources.
  • Locks prevent concurrent runs.

First checks

  • flock -n /var/lock/job.lock cmd || echo 'already running' — lock
  • Scheduler overlap settings — single instance
  • Concurrency limits for shared resources — protection

Verify in this order

trigger → lock check → run or skip

Where it usually breaks

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5355

Confirmation

Confirm action

Continue?