浏览代码

Clarify meaning of @every

Fixes issue #104
Rob Figueiredo 8 年之前
父节点
当前提交
736158dc09
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      doc.go

+ 4 - 4
doc.go

@@ -84,16 +84,16 @@ You may use one of several pre-defined schedules in place of a cron expression.
 
 
 Intervals
 Intervals
 
 
-You may also schedule a job to execute at fixed intervals.  This is supported by
-formatting the cron spec like this:
+You may also schedule a job to execute at fixed intervals, starting at the time it's added 
+or cron is run. This is supported by formatting the cron spec like this:
 
 
     @every <duration>
     @every <duration>
 
 
 where "duration" is a string accepted by time.ParseDuration
 where "duration" is a string accepted by time.ParseDuration
 (http://golang.org/pkg/time/#ParseDuration).
 (http://golang.org/pkg/time/#ParseDuration).
 
 
-For example, "@every 1h30m10s" would indicate a schedule that activates every
-1 hour, 30 minutes, 10 seconds.
+For example, "@every 1h30m10s" would indicate a schedule that activates immediately,
+and then every 1 hour, 30 minutes, 10 seconds.
 
 
 Note: The interval does not take the job runtime into account.  For example,
 Note: The interval does not take the job runtime into account.  For example,
 if a job takes 3 minutes to run, and it is scheduled to run every 5 minutes,
 if a job takes 3 minutes to run, and it is scheduled to run every 5 minutes,