81 |
|
""" |
82 |
|
opt={} |
83 |
|
if optsToSave.get('server_mode',0) == 1: opt['serverName']=optsToSave['server_name'] |
84 |
< |
opt['name']=common.work_space.taskName() |
84 |
> |
opt['name']= getUserName()+ '_' + string.split(common.work_space.topDir(),'/')[-2]+'_'+common.work_space.task_uuid() |
85 |
|
task = Task( opt ) |
86 |
|
try: |
87 |
|
common.bossSession.saveTask( task ) |
207 |
|
lines=[] |
208 |
|
task = self.getTask() |
209 |
|
if server_mode == 1: |
210 |
+ |
# init client server params... |
211 |
+ |
CliServerParams(self) |
212 |
|
headerTask= "Task Id = %-40s " %(task['name']) |
213 |
|
displayReport(self,headerTask,lines) |
214 |
+ |
common.logger.message(showWebMon(self.server_name)) |
215 |
|
if (jid ) or (server_mode == 0): |
216 |
|
for job in task.jobs: |
217 |
|
toPrint='' |
337 |
|
rForJ = r |
338 |
|
break |
339 |
|
## Check the submission number and create new running jobs on the client side |
340 |
< |
if rForJ.getAttribute('resubmit') != 'None' and (rForJ.getAttribute('status') not in ['Cleared','Killed','Done','Done (Failed)']) : |
340 |
> |
if rForJ.getAttribute('resubmit') != 'None' and (rForJ.getAttribute('status') not in ['Cleared','Killed','Done','Done (Failed)','Not Submitted']) : |
341 |
|
if int(job.runningJob['submission']) < int(rForJ.getAttribute('resubmit')) + 1: |
342 |
|
nj_list.append(id) |
343 |
|
if len(nj_list) > 0: self.newRunJobs(nj_list) |
378 |
|
|
379 |
|
## unsing 'standardInput' field for 'ended' tag ['Y','N'] |
380 |
|
job['standardInput'] = str( rForJ.getAttribute('ended') ) |
381 |
+ |
|
382 |
+ |
job.runningJob['state'] = str( rForJ.getAttribute('action') ) |
383 |
|
|
384 |
|
#if str( rForJ.getAttribute('resubmit') ).isdigit(): |
385 |
|
# job['submissionNumber'] = int(rForJ.getAttribute('resubmit')) |