Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DelayIfStillRunning ¶
DelayIfStillRunning serializes jobs, delaying subsequent runs until the previous one is complete. Jobs running after a delay of more than a minute have the delay logged at Info.
func SkipIfStillRunning ¶
SkipIfStillRunning skips an invocation of the Job if a previous invocation is still running. It logs skips to the given logger at Info level.
Types ¶
type Handler ¶
type Handler struct { Cfg *config.ServiceConfig Interactor *cronRouters.CronInteractor }
Click to show internal directories.
Click to hide internal directories.