Skip to content

Commit 736158d

Browse files
authored
Clarify meaning of @every
Fixes issue robfig#104
1 parent 2ae65ff commit 736158d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,16 @@ You may use one of several pre-defined schedules in place of a cron expression.
8484
8585
Intervals
8686
87-
You may also schedule a job to execute at fixed intervals. This is supported by
88-
formatting the cron spec like this:
87+
You may also schedule a job to execute at fixed intervals, starting at the time it's added
88+
or cron is run. This is supported by formatting the cron spec like this:
8989
9090
@every <duration>
9191
9292
where "duration" is a string accepted by time.ParseDuration
9393
(http://golang.org/pkg/time/#ParseDuration).
9494
95-
For example, "@every 1h30m10s" would indicate a schedule that activates every
96-
1 hour, 30 minutes, 10 seconds.
95+
For example, "@every 1h30m10s" would indicate a schedule that activates immediately,
96+
and then every 1 hour, 30 minutes, 10 seconds.
9797
9898
Note: The interval does not take the job runtime into account. For example,
9999
if a job takes 3 minutes to run, and it is scheduled to run every 5 minutes,

0 commit comments

Comments
 (0)