class

CRE::Engine::Scheduler

Inherits Reference < Object

Scheduler is a fiber that publishes SchedulerTick events at a fixed interval. The PolicyEvaluator subscriber listens for these and runs evaluate_all, which discovers overdue credentials and publishes RotationScheduled etc.

The fiber owns its own lifecycle: start() spawns it; stop() flips a flag and the next tick's check exits cleanly.

Constants

Log = ::Log.for("cre.scheduler")

Constructors

new(bus : EventBus, interval : Time::Span = 60.seconds)
Source

Instance methods

running?
Source
start
Source
stop
Source