19 lines
465 B
Markdown
19 lines
465 B
Markdown
# cycle-scheduler
|
|
|
|
cycle-scheduler is a simple scheduler handling jobs and executes them at regular interval. If a task is not in desired state, the task is re-scheduled with a backoff.
|
|
|
|
## Run
|
|
You can run sample tests from `main.go` to see the scheduler in action:
|
|
```bash
|
|
make run
|
|
```
|
|
|
|
You can adjust the clock interval and the number of workers as needed in `main.go` constants section:
|
|
```go
|
|
const (
|
|
MaxWorkers = 5
|
|
Interval = 2000 * time.Millisecond
|
|
)
|
|
```
|
|
|