Esempio n. 1
0
 def __init__(self, no_db=True, db_file=None):
     Scheduler.__init__(self)
     self.daemonic = True
     self.logger = logging.getLogger(self.__class__.__name__)
     self.db_file = db_file or "/home/linxiao.jz/pytool/packages/scheduldb"
     self.db_lock = Lock()
     self.no_db = no_db
     if os.path.exists(self.db_file) and not self.no_db:
         self.reload_job()
Esempio n. 2
0
 def __init__(self, no_db=True, db_file=None):
     Scheduler.__init__(self)
     self.daemonic = True
     self.logger = logging.getLogger(self.__class__.__name__)
     self.db_file = conf.SchedulerDbFile or db_file
     self.db_lock = Lock()
     self.no_db = no_db
     if os.path.exists(self.db_file) and not self.no_db:
         self.reload_job()
Esempio n. 3
0
 def __init__(self):
     Scheduler.__init__(self, daemonic=False)
 def __init__(self, config={}, **kwargs):
     Scheduler.__init__(self, config, **kwargs)
     logger.addHandler(NullHandler())
     self.mutex_function_generator = None
     self.ip = socket.gethostbyname(socket.gethostname())
Esempio n. 5
0
 def __init__(self):
     """
     ensure we are running in daemon mode, so we won't wait for 
     unfinished threads on shutdown
     """
     Scheduler.__init__(self, {'daemonic': True})
Esempio n. 6
0
 def __init__(self, gconfig={}, **options):
     Scheduler.__init__(self, gconfig, **options)
     self._jobalias = {}
Esempio n. 7
0
 def __init__(self):
     """
     ensure we are running in daemon mode, so we won't wait for 
     unfinished threads on shutdown
     """
     Scheduler.__init__(self, {'demonic': True})
Esempio n. 8
0
	def __init__(self, gconfig={}, **options):
		Scheduler.__init__(self, gconfig, **options)
		self.ip = get_ip('eth0')
 def __init__(self, config={}, **kwargs):
     Scheduler.__init__(self, config, **kwargs)
     logger.addHandler(NullHandler())
     self.mutex_function_generator = None
     self.ip = socket.gethostbyname(socket.gethostname())