elector & locker were failing to send out when not leader (#688)

* elector & locker were failing to send out when not leader

* update test to confirm non-active elector/locker are checked

* clean up data race

* try to make test more reliable
This commit is contained in:
John Roesler
2024-03-12 08:37:11 -05:00
committed by GitHub
parent c2f95759d2
commit ebec5e9f91
5 changed files with 142 additions and 26 deletions
+5
View File
@@ -66,6 +66,11 @@ func main() {
}
```
## Examples
- [Go doc examples](https://pkg.go.dev/github.com/go-co-op/gocron/v2#pkg-examples)
- [Examples directory](examples)
## Concepts
- **Job**: The job encapsulates a "task", which is made up of a go function and any function parameters. The Job then