예제 #1
0
 def test_execute_from_commandline(self, detach, exit):
     x = detached_celeryd()
     x.execute_from_commandline(self.argv)
     self.assertTrue(exit.called)
     detach.assert_called_with(path=x.execv_path, uid=None, gid=None,
         umask=0, fake=False, logfile='/var/log', pidfile='celeryd.pid',
         argv=['-m', 'celery', 'worker', '-c', '1', '-lDEBUG',
               '--logfile=/var/log', '--pidfile=celeryd.pid',
               '--', '.disable_rate_limits=1'],
     )
예제 #2
0
 def test_execute_from_commandline(self, detach, exit):
     x = detached_celeryd()
     x.execute_from_commandline(self.argv)
     self.assertTrue(exit.called)
     detach.assert_called_with(path=x.execv_path, uid=None, gid=None,
         umask=0, working_directory=None, fake=False,
         logfile='/var/log', pidfile='celeryd.pid',
         argv=['-m', 'celery.bin.celeryd', '-c', '1', '-lDEBUG',
               '--logfile=/var/log', '--pidfile=celeryd.pid',
               '--', '.disable_rate_limits=1'],
     )
예제 #3
0
 def test_execute_from_commandline(self, detach, exit):
     x = detached_celeryd(app=self.app)
     x.execute_from_commandline(self.argv)
     exit.assert_called()
     detach.assert_called_with(
         path=x.execv_path, uid=None, gid=None,
         umask=None, fake=False, logfile='/var/log', pidfile='celeryd.pid',
         workdir=None, executable=None, hostname=None,
         argv=x.execv_argv + [
             '-c', '1', '-lDEBUG',
             '--logfile=/var/log', '--pidfile=celeryd.pid',
             '--', '.disable_rate_limits=1'
         ],
         app=self.app,
     )
예제 #4
0
 def test_execute_from_commandline(self, detach, exit):
     x = detached_celeryd(app=self.app)
     x.execute_from_commandline(self.argv)
     exit.assert_called()
     detach.assert_called_with(
         path=x.execv_path, uid=None, gid=None,
         umask=None, fake=False, logfile='/var/log', pidfile='celeryd.pid',
         workdir=None, executable=None, hostname=None,
         argv=x.execv_argv + [
             '-c', '1', '-lDEBUG',
             '--logfile=/var/log', '--pidfile=celeryd.pid',
             '--', '.disable_rate_limits=1'
         ],
         app=self.app,
     )
예제 #5
0
 def test_execute_from_commandline(self, detach, exit):
     x = detached_celeryd(app=self.app)
     x.execute_from_commandline(self.argv)
     self.assertTrue(exit.called)
     detach.assert_called_with(
         path=x.execv_path,
         uid=None,
         gid=None,
         umask=None,
         fake=False,
         logfile="/var/log",
         pidfile="celeryd.pid",
         working_directory=None,
         argv=x.execv_argv
         + ["-c", "1", "-lDEBUG", "--logfile=/var/log", "--pidfile=celeryd.pid", "--", ".disable_rate_limits=1"],
         app=self.app,
     )