RStDGG410HWJobSubmissionSD

In [1]:j=Job()
 
In [2]:p j
Job (
 status = 'new' ,
 name = '' ,
 inputdir = '/afs/cern.ch/user/s/stdenis/gangadir/workspace/Local/1/input/' ,
 outputdir = '/afs/cern.ch/user/s/stdenis/gangadir/workspace/Local/1/output/' ,
 outputsandbox = [] ,
 id = 1 ,
 inputdata = None ,
 inputsandbox = [ ] ,
 application = Executable (
    exe = 'echo' ,
    env = {} ,
    args = ['Hello World']
    ) ,
 splitter = None ,
 subjobs = [ ] ,
 backend = Local (
    actualCE = None ,
    workdir = None ,
    id = None ,
    exitcode = None
    )
 )
 
 
 
In [3]:j.application.exe='/bin/echo'
/afs/cern.ch/sw/ganga/install/slc3_gcc323/4.1.0/python/Ganga/GPIDev/Base/Proxy.py:235: FutureWarning: hex()/oct() of negative int will return a signed string in Python 2.4 and up
  return '<'+repr(self._impl)+' PROXY at '+hex(id(self))+'>'
 
In [4]:j.application.env={'MESSAGE':'Hello World'}
 
In [5]:j.application.args=['$MESSAGE']
 
In [6]:j.submit()
Ganga.GPIDev.Lib.Job               : INFO     submitting job 1
Ganga.GPIDev.Adapters              : INFO     submitting subjob 1
Ganga.Lib.Localhost                : INFO     job 1 submitted
Out[6]: 1
 
In [7]:
Ganga.Lib.Localhost                : INFO     Local job 1 status changed to running, pid=2144
Ganga.Lib.Localhost                : INFO     Local job 1 finished with exitcode 0
 
In [7]:j2=j.copy()
 
In [8]:j2.backend=LSF()
 
In [9]:j2.submit
------>j2.submit()
Ganga.GPIDev.Lib.Job               : INFO     submitting job 2
Ganga.GPIDev.Adapters              : WARNING  LEGACY interface of LSF
Ganga.GPIDev.Adapters              : INFO     submitting subjob 2
Ganga.Lib.LSF                      : INFO     LSF: submitting job 2
Ganga.Lib.LSF                      : INFO     using default queue "8nm"
Ganga.Lib.LSF                      : INFO     job 2 submission OK
Out[9]: 1
 
In [10]:j3=j.copy()
Ganga.Lib.LSF                      : INFO     2: LSF job status changed to PEND
 
In [11]:j3.backend=LCG()
 
In [12]:j3.submit()
Ganga.GPIDev.Lib.Job               : INFO     submitting job 3
Ganga.GPIDev.Adapters              : INFO     submitting subjob 3
 
Out[12]: 1
Ganga.Lib.LSF                      : INFO     2: LSF job status changed to RUN
 
In [13]:
 
In [13]:



Major updates:
-- RichardStDenis - 29 Mar 2006

%RESPONSIBLE%
%REVIEW%

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2006-03-30 - RichardStDenis
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback