dmwm / CRAB2

CRAB2
2 stars 11 forks source link

implement crab -resubmit bad #869

Closed ericvaandering closed 10 years ago

ericvaandering commented 10 years ago

Original Savannah ticket 99942 reported by belforte on Mon Jan 21 04:19:51 2013.

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.

ADD: ['Cancelled'] to be added exit code 60308 to be skipped

ericvaandering commented 10 years ago

Comment by slacapra on Thu Jan 17 10:25:20 2013

Committed into CVS

Modified Files: crab.py Resubmitter.py ResubmitterServer.py Log Message: implement -resubmit bad as per task #39244

ericvaandering commented 10 years ago

Comment by belforte on Mon Jan 21 04:19:51 2013

This item has been reassigned from the project CRAB task tracker to your tracker.

The original report is still available at task #39244

Following are the information included in the original report:

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.

ADD: [ Cancelled ] to be added exit code 60308 to be skipped

ericvaandering commented 10 years ago

Closed by belforte on Tue Jan 29 06:42:40 2013

ericvaandering commented 10 years ago

Comment by belforte on Tue Jan 29 06:42:40 2013

released in CRAB_2_8_5