Version: 9.12.0
launcher_proxy.Job Class Reference

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
 

Detailed Description

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.

Member Function Documentation

◆ getResults()

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.

◆ launch()

def launcher_proxy.Job.launch (   job_params)
static
 Create, submit and dump a new job to result_dir.

◆ relaunch()

def launcher_proxy.Job.relaunch (   self,
  script = "" 
)

◆ reloadJob()

def launcher_proxy.Job.reloadJob (   result_dir)
static
 Create a new job from a job dumped in result_dir.

◆ saveJob()

def launcher_proxy.Job.saveJob (   self,
  result_dir 
)

◆ verify()

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.

◆ wait()

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.

Field Documentation

◆ job_id