Quellcode durchsuchen

Added FAQ: Does celery support priorities?

Ask Solem vor 15 Jahren
Ursprung
Commit
dc333bb62c
1 geänderte Dateien mit 12 neuen und 0 gelöschten Zeilen
  1. 12 0
      FAQ

+ 12 - 0
FAQ

@@ -539,3 +539,15 @@ Can I change the interval of a periodic task at runtime?
         @property
         def run_every(self):
             return get_interval_from_database(...)
+
+
+Does celery support task priorities?
+------------------------------------
+
+**Answer**: No, or theoretically as AMQP supports priorities but
+RabbitMQ doesn't implement them yet.
+
+However the usual way to prioritize work in celery, is to route high priority tasks
+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
+highly performant system.