initial clean v2 commit history

This commit is contained in:
John Roesler
2023-11-08 11:11:42 -06:00
commit ad26a71e0e
27 changed files with 4717 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
package gocron
import "context"
// Elector determines the leader from instances asking to be the leader. Only
// the leader runs jobs. If the leader goes down, a new leader will be elected.
type Elector interface {
// IsLeader should return nil if the job should be scheduled by the instance
// making the request and an error if the job should not be scheduled.
IsLeader(context.Context) error
}