Explorar el Código

celerybeat: Don't pass command line args to Beat()

Ask Solem hace 14 años
padre
commit
a4f36e7f2d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      celery/bin/celerybeat.py

+ 1 - 1
celery/bin/celerybeat.py

@@ -29,7 +29,7 @@ class BeatCommand(Command):
 
 
     def run(self, *args, **kwargs):
     def run(self, *args, **kwargs):
         kwargs.pop("app", None)
         kwargs.pop("app", None)
-        return self.app.Beat(*args, **kwargs).run()
+        return self.app.Beat(**kwargs).run()
 
 
     def get_options(self):
     def get_options(self):
         conf = self.app.conf
         conf = self.app.conf