Discover Packages
github.com/HZ89/djob
scheduler
package
Version:
v0.2.6
Opens a new window with list of versions in this module.
Published: Dec 13, 2017
License: GPL-3.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
Documentation
¶
At func just store the given time for this schedule.
Every returns a crontab Schedule that activates once every duration.
Delays of less than a second are not supported (will round up to 1 second).
Any fields less than a Second are truncated.
Prepare This func return a new analyzer by spec
spec can be:
crontab specs, e.g. "* * * * * *"
(second) (minute) (hour) (day of month) (month) (day of week)
Descriptors, e.g. "@midnight", "@every 1h"
type Scheduler struct {
RunJobCh chan *pb .Job
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.