Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Scheduler *gocron.Scheduler
Scheduler manages all cron-based agent jobs.
Functions ¶
func StartJob ¶
func StartJob(agentID uint)
StartJob enqueues a run of the agent on the worker queue. It is called by the cron scheduler at each tick of the agent's schedule.
func StartScheduler ¶
func StartScheduler()
StartScheduler initializes the gocron scheduler and adds jobs for all agents with a cron field.
func TriggerSchemaReload ¶
func TriggerSchemaReload()
TriggerSchemaReload re-initializes the GraphQL schema. It's designed to be called in a goroutine so it doesn't block API responses.
Types ¶
This section is empty.