(self, config_id, config, budget)
hidden function to submit a new job to the dispatcher

		This function handles the actual submission in a
		(hopefully) thread save way
hidden function to submit a new job to the dispatcher
hidden function to submit a new job to the dispatcher
def _submit_job(self, config_id, config, budget):
		"""
		hidden function to submit a new job to the dispatcher

		This function handles the actual submission in a
		(hopefully) thread save way
		"""
		self.logger.debug('HBMASTER: trying submitting job %s to dispatcher'%str(config_id))
		with self.thread_cond:
			self.logger.debug('HBMASTER: submitting job %s to dispatcher'%str(config_id))
			self.dispatcher.submit_job(config_id, config=config, budget=budget, working_directory=self.working_directory)
			self.num_running_jobs += 1

		#shouldn't the next line be executed while holding the condition?
		self.logger.debug("HBMASTER: job %s submitted to dispatcher"%str(config_id))
def _submit_job ( self , config_id , config , budget ) : self . logger . debug ( 'HBMASTER: trying submitting job %s to dispatcher' % str ( config_id ) ) with self . thread_cond : self . logger . debug ( 'HBMASTER: submitting job %s to dispatcher' % str ( config_id ) ) self . dispatcher . submit_job ( config_id , config = config , budget = budget , working_directory = self . working_directory ) self . num_running_jobs += 1 #shouldn't the next line be executed while holding the condition? self . logger . debug ( "HBMASTER: job %s submitted to dispatcher" % str ( config_id ) )