Procházet zdrojové kódy

Removes reference to @periodic_task in FAQ

Ask Solem před 9 roky
rodič
revize
59968352cb
1 změnil soubory, kde provedl 1 přidání a 11 odebrání
  1. 1 11
      docs/faq.rst

+ 1 - 11
docs/faq.rst

@@ -810,19 +810,9 @@ Can I schedule tasks to execute at a specific time?
 
 **Answer**: Yes. You can use the `eta` argument of :meth:`Task.apply_async`.
 
-Or to schedule a periodic task at a specific time, use the
-:class:`celery.schedules.crontab` schedule behavior:
+See also :ref:`guide-beat`.
 
 
-.. code-block:: python
-
-    from celery.schedules import crontab
-    from celery.task import periodic_task
-
-    @periodic_task(run_every=crontab(hour=7, minute=30, day_of_week="mon"))
-    def every_monday_morning():
-        print("This is run every Monday morning at 7:30")
-
 .. _faq-safe-worker-shutdown:
 
 How can I safely shut down the worker?