Skip to content

Do we need to implement concurrency with scheduled cron jobs? #690

Closed
@adeeb1

Description

Hi, and thank you for your amazing work on this gem! Under the Cron section of the README, it states:

Cron-style jobs are run on every GoodJob process (e.g. CLI or async execution mode) when config.good_job.enable_cron = true, but GoodJob's cron uses unique indexes to ensure that only a single job is enqeued at the given time interval.

Let's say I have two VMs each running GoodJob workers, and I'd like a daily cron job to run only one time each day. Would the default cron unique index work for this use case, or do I also need to implement concurrency to ensure the job runs only once?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions