Преглед на файлове

Added FAQ: Can I schedule tasks to execute at a specific time?

Ask Solem преди 15 години
родител
ревизия
c57b34face
променени са 1 файла, в които са добавени 12 реда и са изтрити 0 реда
  1. 12 0
      FAQ

+ 12 - 0
FAQ

@@ -551,3 +551,15 @@ However the usual way to prioritize work in celery, is to route high priority ta
 to different servers. In the real world this may actually work better than per. message
 to different servers. In the real world this may actually work better than per. message
 priorities. You can use this in combination with rate limting to achieve a
 priorities. You can use this in combination with rate limting to achieve a
 highly performant system.
 highly performant system.
+
+Can I schedule tasks to execute at a specific time?
+---------------------------------------------------
+
+.. module:: celery.task.base
+
+**Answer**: Yes. You can use the ``eta`` argument of :meth:`Task.apply_async`.
+
+However, you can't schedule a periodic task at a specific time yet.
+The good news is, if anyone is willing
+to implement it, it shouldn't be that hard, some pointers to achieve this has
+been written here: http://bit.ly/99UQNO