Explorar o código

removed a duplicate piece of code that was creating a pid file. evcam was trying to create the same pid file twice and getting an error because it already existed (the second time).

Matthew J Morrison %!s(int64=14) %!d(string=hai) anos
pai
achega
39b3016a00
Modificáronse 1 ficheiros con 0 adicións e 3 borrados
  1. 0 3
      celery/events/snapshot.py

+ 0 - 3
celery/events/snapshot.py

@@ -83,9 +83,6 @@ def evcam(camera, freq=1.0, maxrate=None, loglevel=0,
     logger = app.log.setup_logger(loglevel=loglevel,
                                   logfile=logfile,
                                   name="celery.evcam")
-    if pidfile:
-        pidlock = platforms.create_pidlock(pidfile).acquire()
-        atexit.register(pidlock.release)
 
     logger.info(
         "-> evcam: Taking snapshots with %s (every %s secs.)\n" % (