Browse Source

celery status should not show reply

Ask Solem 12 years ago
parent
commit
13d2b27c4c
1 changed files with 3 additions and 1 deletions
  1. 3 1
      celery/bin/celery.py

+ 3 - 1
celery/bin/celery.py

@@ -67,6 +67,7 @@ class Command(BaseCommand):
     prog_name = 'celery'
     show_body = True
     leaf = True
+    show_reply = True
 
     option_list = (
         Option('--quiet', '-q', action='store_true'),
@@ -141,7 +142,7 @@ class Command(BaseCommand):
         reply = replies[node]
         status, preply = self.prettify(reply)
         self.say_chat('->', c.cyan(node, ': ') + status,
-                      text.indent(preply, 4))
+                      text.indent(preply, 4) if self.show_reply else '')
 
     def prettify(self, n):
         OK = str(self.colored.green('OK'))
@@ -525,6 +526,7 @@ class inspect(_RemoteControl):
         'ping': (0.2, 'ping worker(s)'),
         'report': (1.0, 'get bugreport info')
     }
+    show_reply = False
 
     def call(self, method, *args, **options):
         i = self.app.control.inspect(**options)