Skip to content

Commit

Permalink
docs: add WithDistributedElector usage (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfyiamcool authored Sep 7, 2023
1 parent a497bef commit 6328e00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ There are several options available to restrict how jobs run:
| Job singleton | `SingletonMode()` | a long running job will not be rescheduled until the current run is completed |
| Scheduler limit | `SetMaxConcurrentJobs()` | set a collective maximum number of concurrent jobs running across the scheduler |
| Distributed locking | `WithDistributedLocker()` | prevents the same job from being run more than once when running multiple instances of the scheduler |
| Distributed elector | `WithDistributedElector()` | multiple instances exist in a distributed scenario, only the leader instance can run jobs |

## Distributed Locker Implementations

Expand Down

0 comments on commit 6328e00

Please sign in to comment.