Ver código fonte

Removed pool diagnose command, as it was not working well

Ask Solem 14 anos atrás
pai
commit
af187b2de4
2 arquivos alterados com 1 adições e 10 exclusões
  1. 0 8
      Changelog
  2. 1 2
      celery/bin/celeryctl.py

+ 0 - 8
Changelog

@@ -139,14 +139,6 @@ News
 * :func:`celery.task.control.broadcast`: Added callback argument, this can be
   used to process replies immediately as they arrive.
 
-* New remote control command: ``diagnose``.
-
-    Verifies that the pool workers are able to accept and perform tasks.
-
-    .. warning::
-        This is only reliable as long as the worker node is not
-        processing tasks.
-
 * celeryctl: New command-line utility to manage and inspect worker nodes,
   and also apply tasks and inspect the results of tasks.
 

+ 1 - 2
celery/bin/celeryctl.py

@@ -167,7 +167,7 @@ result = command(result)
 
 
 class inspect(Command):
-    choices = {"active": 10,
+    choices = {"active": 1.0,
                "scheduled": 1.0,
                "reserved": 1.0,
                "stats": 1.0,
@@ -175,7 +175,6 @@ class inspect(Command):
                "registered_tasks": 1.0,
                "enable_events": 1.0,
                "disable_events": 1.0,
-               "diagnose": 2.0,
                "ping": 0.2}
     option_list = Command.option_list + (
                 Option("--timeout", "-t", type="float", dest="timeout",