def _execute_dispatcher(simulation, job, supervision, user): """Executes the superviseur dispatcher function. """ params = superviseur.DispatchParameters(simulation, job, supervision, user) try: superviseur.dispatch_script(params) except Exception as err: logger.log_error(err)
def _execute_formatter(simulation, job, job_period, supervision, user): """Executes the superviseur formatter function. """ params = superviseur.FormatParameters( simulation, job, job_period, supervision, user ) try: script = superviseur.format_script(params) except Exception as err: logger.log_error(err) else: #print script _write_script(script, job)