Sorting hat: only resubmit on memory_limit_reached
By default, all job failures trigger a resubmit. We prefer to resubmit only when galaxy has detected that the job has reached its memory limit.
Investigating another potential bug, don't merge yet
Edited by Anthony Bretaudeau