dmwm / CRAB2

CRAB2
2 stars 11 forks source link

add bad option to crab -resubmit #868

Closed ericvaandering closed 10 years ago

ericvaandering commented 10 years ago

Original Savannah ticket 99941 reported by belforte on Mon Jan 21 04:16:36 2013.

see https://hypernews.cern.ch/HyperNews/CMS/get/crabDevelopment/1635.html

Hi, I'd like to propose you a new feature for crab2, that allows to resubmit the set of failed jobs without having to copy-paste by hand the list(s) of failed jobs from -status output.

The use case should be obvious: it is particularly important in case multicrab is used. In that case it is not possible to resubmit via multicrab, since each task need its own list of failed job.

The syntax could be simply

crab -resubmit bad

(similar to crab -resubmit all )

I have the modification in the code ready in 284 and I'm using it w/o problems (crab.py, Resubmitter.py and ResubmitterServer.py)

The implementation is such that the following jobs are resubmitted:

in status ['KillSuccess','SubFailed','Aborted']

in status ['Cleared'] if the job or wrapper exit code is not 0.

The set can be expanded easily.

Best, StefanoL

ericvaandering commented 10 years ago

Closed by belforte on Mon Jan 21 04:20:53 2013

ericvaandering commented 10 years ago

Comment by belforte on Mon Jan 21 04:20:53 2013

my mistake. this existed already