Esempio n. 1
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,
     )
Esempio n. 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,
     )
Esempio n. 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,
     )
Esempio n. 4
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,
     )