Avoid LSF emails when running large gridpacks
Hello,
I am trying to edit the cluster.py code, as explained by Olivier in this post,
https:/
in order to avoid that the CERN LSF cluster floods me with hundreds of emails when generating complicated processes.
However, as opposite to that user, I am running in gridpack creation mode.
In this mode, the solution proposed by Olivier
"Change:
if stdout and isinstance(stdout, str):
by
if stdout and isinstance(stdout, str):
else:
and
if stderr and isinstance(stdout, str):
elif stderr == -2: # -2 is subprocess.STDOUT
pass
by
if stderr and isinstance(stdout, str):
elif stderr == -2: # -2 is subprocess.STDOUT
pass
else:
"
does not work for me. The error is:
Working on SubProcesses
P0_qq_wp_wp_lvl
P0_
P1_qq_wm_wm_lvl
P1_
INFO: Idle: 1, Running: 3, Completed: 0 [ 0.18s ]
INFO: Idle: 0, Running: 3, Completed: 1 [ 30.4s ]
INFO: Idle: 0, Running: 3, Completed: 1 [ 1m 0s ]
INFO: Idle: 0, Running: 2, Completed: 2 [ 1m 30s ]
INFO: All jobs finished
Start waiting for update. (more info in debug mode)
Command "generate_events pilotrun" interrupted with error:
IOError : [Fail 5 times]
[Errno 2] No such file or directory: '/afs/cern.
/wellnu01234j_
Please report this bug on https:/
More information is found in '/afs/cern.
LO_MLM_
Please attach this file to your report.
I report here the file processtmp/
generate_events pilotrun
Traceback (most recent call last):
File "/afs/cern.
rocesstmp/
return self.onecmd_
File "/afs/cern.
rocesstmp/
return func(arg, **opt)
File "/afs/cern.
rocesstmp/
postcmd=False)
File "/afs/cern.
rocesstmp/
stop = Cmd.onecmd_
File "/afs/cern.
rocesstmp/
return func(arg, **opt)
File "/afs/cern.
rocesstmp/
cross, error = sum_html.
File "/afs/cern.
rocesstmp/
P_comb.
File "/afs/cern.
rocesstmp/
oneresult.
File "/afs/cern.
rocesstmp/
raise error.__class__, '[Fail %i times] \n %s ' % (i+1, error)
IOError: [Fail 5 times]
[Errno 2] No such file or directory: '/afs/cern.
1234j_5f_
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Roberto Covarelli for more information if necessary.