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
| Name | Type | Description |
|---|---|---|
| scheduledAt | time.Time | The exact time at which the job was scheduled to run, provided by the cron scheduler. |