浏览代码

Fix doc for relative flag of periodic task (#3432) (#3432)

Pierre Fersing 8 年之前
父节点
当前提交
7530b03e56
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      docs/userguide/periodic-tasks.rst

+ 2 - 2
docs/userguide/periodic-tasks.rst

@@ -179,12 +179,12 @@ Available Fields
 
 
 * `relative`
 * `relative`
 
 
-    By default :class:`~datetime.timedelta` schedules are scheduled
+    If `relative` is true :class:`~datetime.timedelta` schedules are scheduled
     "by the clock." This means the frequency is rounded to the nearest
     "by the clock." This means the frequency is rounded to the nearest
     second, minute, hour or day depending on the period of the
     second, minute, hour or day depending on the period of the
     :class:`~datetime.timedelta`.
     :class:`~datetime.timedelta`.
 
 
-    If `relative` is true the frequency isn't rounded and will be
+    By default `relative` is false, the frequency isn't rounded and will be
     relative to the time when :program:`celery beat` was started.
     relative to the time when :program:`celery beat` was started.
 
 
 .. _beat-crontab:
 .. _beat-crontab: