How GoodJob's Cron does distributed locks
GoodJob is a multithreaded, Postgres-based, ActiveJob backend for Ruby on Rails. GoodJob has many features that take it beyond ActiveJob. One such feature is cron-like functionality that allows scheduling repeated jobs on a fixed schedule.This post is a brief technical story of how GoodJob prevents duplicated cron jobs from running in a multi-process, distributed environment.
How GoodJob's Cron does distributed locks #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/how-goodjob-s-cron-does-distributed-locks