Explorar o código

Return PIDLockFile if the lock is stale

Ask Solem %!s(int64=16) %!d(string=hai) anos
pai
achega
fa0fb625f2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/bin/celeryd.py

+ 1 - 1
celery/bin/celeryd.py

@@ -144,7 +144,7 @@ def acquire_pidlock(pidfile):
         if exc.errno == errno.ESRCH:
             sys.stderr.write("Stale pidfile exists. Removing it.\n")
             pidlock.release()
-            return
+            return PIDLockFile(pidfile)
     else:
         raise SystemExit(
                 "ERROR: Pidfile (%s) already exists.\n"