Browse Source

Fix crontab documentation (#4880)

* Fix rst border alignment

A misaligned pipe character on the crontab examples table meant that the
entire table was not being rendered on the documentation.

* Fixes #4020 Update crontab pattern
Lewis M. Kabui 6 years ago
parent
commit
4b49060b32
2 changed files with 3 additions and 3 deletions
  1. 1 1
      celery/schedules.py
  2. 2 2
      docs/userguide/periodic-tasks.rst

+ 1 - 1
celery/schedules.py

@@ -361,7 +361,7 @@ class crontab(BaseSchedule):
         - A (list of) integers from 1-31 that represents the days of the
           month that execution should occur.
         - A string representing a Crontab pattern.  This may get pretty
-          advanced, such as ``day_of_month='2-30/3'`` (for every even
+          advanced, such as ``day_of_month='2-30/2'`` (for every even
           numbered day) or ``day_of_month='1-7,15-21'`` (for the first and
           third weeks of the month).
 

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

@@ -265,7 +265,7 @@ Some examples:
 |                                         |                                            |
 +-----------------------------------------+--------------------------------------------+
 | ``crontab(0, 0,``                       | Execute on every even numbered day.        |
-|         ``day_of_month='2-30/3')``      |                                            |
+|         ``day_of_month='2-30/2')``      |                                            |
 +-----------------------------------------+--------------------------------------------+
 | ``crontab(0, 0,``                       | Execute on the first and third weeks of    |
 |         ``day_of_month='1-7,15-21')``   | the month.                                 |
@@ -273,7 +273,7 @@ Some examples:
 | ``crontab(0, 0, day_of_month='11',``    | Execute on the eleventh of May every year. |
 |          ``month_of_year='5')``         |                                            |
 +-----------------------------------------+--------------------------------------------+
-| ``crontab(0, 0,``                       | Execute every day on the first month     |
+| ``crontab(0, 0,``                       | Execute every day on the first month       |
 |         ``month_of_year='*/3')``        | of every quarter.                          |
 +-----------------------------------------+--------------------------------------------+