Ver código fonte

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

Pierre Fersing 8 anos atrás
pai
commit
7530b03e56
1 arquivos alterados com 2 adições e 2 exclusões
  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: