Skip to main content

GoCronJob

GoCronJob wraps a *models.Trigger and fires the executor at each scheduled time. It implements cron.TimedJob so the scheduler passes the exact scheduled time to Run.

Methods


Run()

@classmethod
def Run(
scheduledAt: time.Time
)

Executes the cron job at the specified scheduled time. This method is called by the cron scheduler and passes the exact scheduled time for execution.

Parameters

NameTypeDescription
scheduledAttime.TimeThe exact time at which the job was scheduled to run, provided by the cron scheduler.