466 B
466 B
cycle-scheduler
cycle-scheduler is a simple scheduler handling tasks 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:
make run
You can adjust the clock interval and the number of workers as needed in main.go constants section:
const (
MaxWorkers = 5
Interval = 2000 * time.Millisecond
)