How GoodJob's Cron does distributed locks
26-Jan-2023 892
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 #GoodJob's #distributed #locks https://rubyonrails.ba/link/how-goodjob-s-cron-does-distributed-locks