Skip to content

Commit

Permalink
Updating README for concurrent scheduler detection
Browse files Browse the repository at this point in the history
  • Loading branch information
hlascelles committed Mar 29, 2018
1 parent d741671 commit 017703f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,16 @@ Additionally, like Que, when your database is backed up, your scheduling state i
workers are down for an extended period, or a DB restore is performed, the scheduler will always be
in a coherent state with the rest of your database.

## Multiple scheduler detection
## Concurrent scheduler detection

No matter how many tasks you have defined in your config, you will only ever need one que-scheduler
job enqueued. que-scheduler knows this, and it will check before performing any operations that
there is only one of itself present.

It also follows que job design [best practices](https://github.com/chanks/que/blob/master/docs/writing_reliable_jobs.md),
using ACID guarantees, to ensure that it will never run multiple times. If the scheduler crashes for any reason,
it will rollback correctly and try again. It won't schedule jobs twice for a cron match.

## How it works

que-scheduler is a job that reads a config file, enqueues any jobs it determines that need to be run,
Expand Down

0 comments on commit 017703f

Please sign in to comment.