Esempio n. 1
0
 def get_pidfile_contents(self, pidfile_id, use_second_read=False):
     if pidfile_id not in self._pidfiles:
         logging.debug('Request for nonexistent pidfile %s' % pidfile_id)
     return self._pidfiles.get(pidfile_id, drone_manager.PidfileContents())
Esempio n. 2
0
 def _initialize_pidfile(self, pidfile_id):
     if pidfile_id not in self._pidfiles:
         assert pidfile_id.key() not in self._pidfile_index
         self._pidfiles[pidfile_id] = drone_manager.PidfileContents()
         self._pidfile_index[pidfile_id.key()] = pidfile_id