Public Member Functions | |
def | saveJob (self, result_dir) |
def | wait (self, sleep_delay=10) |
def | verify (self) |
def | getResults (self) |
def | relaunch (self, script="") |
Static Public Member Functions | |
def | launch (job_params) |
def | reloadJob (result_dir) |
Data Fields | |
job_id | |
This class makes an easier access to SalomeLauncher. It adds an automatic save of the job's parameters after the launch. The save is done into the result directory of the job. It is then possible to reload the job from that file. It also provides a waiting loop for the job to finish. This proxy also hides the calls to the naming service in order to get the instance of SalomeLauncher.
def launcher_proxy.Job.getResults | ( | self | ) |
Copy the result files from remote working_directory to the local result_directory.
References Engines::JobDescription.job_id, and launcher_proxy.Job.job_id.
|
static |
Create, submit and dump a new job to result_dir.
def launcher_proxy.Job.relaunch | ( | self, | |
script = "" |
|||
) |
References Engines::JobDescription.job_id, and launcher_proxy.Job.job_id.
|
static |
Create a new job from a job dumped in result_dir.
def launcher_proxy.Job.saveJob | ( | self, | |
result_dir | |||
) |
References Engines::JobDescription.job_id, and launcher_proxy.Job.job_id.
def launcher_proxy.Job.verify | ( | self | ) |
Get the return code of the solver if the job is finished. If the job is not finished (submission error or another state), return an empty string.
References Engines::JobDescription.job_id, and launcher_proxy.Job.job_id.
def launcher_proxy.Job.wait | ( | self, | |
sleep_delay = 10 |
|||
) |
Wait for the end of the job
References Engines::JobDescription.job_id, and launcher_proxy.Job.job_id.
launcher_proxy.Job.job_id |