コード例 #1
0
ファイル: runner.py プロジェクト: mrakitin/sirepo
 def _start_job(self):
     """Detach a process from the controlling terminal and run it in the
     background as a daemon.
     """
     from sirepo import celery_tasks
     self.celery_queue = simulation_db.celery_queue(self.data)
     return celery_tasks.start_simulation.apply_async(
         args=[self.cmd, str(self.run_dir)],
         queue=self.celery_queue,
     )
コード例 #2
0
 def _start_job(self):
     """Detach a process from the controlling terminal and run it in the
     background as a daemon.
     """
     from sirepo import celery_tasks
     self.celery_queue = simulation_db.celery_queue(self.data)
     return celery_tasks.start_simulation.apply_async(
         args=[self.cmd, str(self.run_dir)],
         queue=self.celery_queue,
     )
コード例 #3
0
 def _start(self):
     """Detach a process from the controlling terminal and run it in the
     background as a daemon.
     """
     self.__celery_queue = simulation_db.celery_queue(self.data)
     self.__async_result = celery_tasks.start_simulation.apply_async(
         args=[self.cmd, str(self.run_dir)],
         queue=self.__celery_queue,
     )
     pkdc(
         '{}: started tid={} dir={} queue={}',
         self.jid,
         self.__async_result.task_id,
         self.run_dir,
         self.__celery_queue,
     )
コード例 #4
0
ファイル: celery.py プロジェクト: e-carlin/sirepo
 def _start(self):
     """Detach a process from the controlling terminal and run it in the
     background as a daemon.
     """
     self.__celery_queue = simulation_db.celery_queue(self.data)
     self.__async_result = celery_tasks.start_simulation.apply_async(
         args=[self.cmd, str(self.run_dir)],
         queue=self.__celery_queue,
     )
     pkdc(
         '{}: started tid={} dir={} queue={}',
         self.jid,
         self.__async_result.task_id,
         self.run_dir,
         self.__celery_queue,
     )