Module jobtemplate
[hide private]
[frames] | no frames]

Source Code for Module jobtemplate

 1  ############################################################################ 
 2  # jobtemplate.py 
 3  # 
 4  # Template job runner stub. 
 5  # 
 6  # (C) 2008 Likya Software Ltd. 
 7  ############################################################################ 
 8   
 9  import sys 
10   
11  # Modify paths so that the application server related files can be imported 
12  if "$APPSRV_PATH" not in sys.path: 
13      sys.path.insert(0, "$APPSRV_PATH") 
14   
15  if "." not in sys.path: 
16      sys.path.insert(0, ".") 
17   
18  import worker 
19   
20 -def workerEntry(runID, workerServices):
21 22 workerObj = worker.Worker(runID, workerServices) 23 return workerObj.run()
24