ATLAS Offline Software
Loading...
Searching...
No Matches
python.LSFJobRunner.LSFJobRunner Class Reference
Inheritance diagram for python.LSFJobRunner.LSFJobRunner:
Collaboration diagram for python.LSFJobRunner.LSFJobRunner:

Public Member Functions

 __init__ (self, **params)
 submitJob (self, jobConfig)

Detailed Description

LSFJobRunner - run jobs using the LSF batch system

Definition at line 19 of file LSFJobRunner.py.

Constructor & Destructor Documentation

◆ __init__()

python.LSFJobRunner.LSFJobRunner.__init__ ( self,
** params )
Constructor (takes any number of parameters as an argument).

Definition at line 22 of file LSFJobRunner.py.

22 def __init__(self,**params):
23 """Constructor (takes any number of parameters as an argument)."""
24 JobRunner.__init__(self)
25
26 # Set user-specified parameters only after LSFJobRunner defaults
27 self.setParam('batchqueue','8nm','Batch queue')
28 for k in params.keys():
29 self.setParam(k,params[k])
30 self.checkParams()
31

Member Function Documentation

◆ submitJob()

python.LSFJobRunner.LSFJobRunner.submitJob ( self,
jobConfig )
Submit a JobRunner job as a LSF batch job.

Definition at line 32 of file LSFJobRunner.py.

32 def submitJob(self,jobConfig):
33 """Submit a JobRunner job as a LSF batch job."""
34 batchCmd = 'bsub -L /bin/bash -q %(batchqueue)s -J %(jobname)s -o %(logfile)s %(scriptfile)s' % jobConfig
35 print (batchCmd)
36 os.system(batchCmd)
37 return None

The documentation for this class was generated from the following file: