mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
This specifically addresses the problem where some jobs of a mapped-over collection have failed. Instead of filtering the failed collection and restarting the workflow at this position (involving a lot of copy-paste ...) the user can now limit the rerun to the problematic jobs and the workflow should resume from there. Should fix https://github.com/galaxyproject/galaxy/issues/2235. This is one possible implementation, it would also be feasible to not manipulate the original collection, but to copy the HDCA and then to replace collection elements and replace all references for jobs that depend on the HDCA, as we do for HDAs. This implementation seems simpler, but let me know if you see problems with this approach.
22 lines
686 B
XML
22 lines
686 B
XML
<tool id="fail_identifier" name="Fail input with identifier that contains fail">
|
|
<command><![CDATA[
|
|
#if $failbool and 'fail' in $input1.element_identifier
|
|
sh -c "exit 127"
|
|
#else
|
|
cp '$input1' '$out_file1'
|
|
#end if
|
|
]]></command>
|
|
<inputs>
|
|
<param name="input1" type="data" label="An input file" />
|
|
<param name="failbool" type="boolean" label="The failure property" checked="false" />
|
|
</inputs>
|
|
<outputs>
|
|
<data name="out_file1" format="data"/>
|
|
</outputs>
|
|
<stdio>
|
|
<exit_code range="127" level="fatal" description="Failing exit code." />
|
|
</stdio>
|
|
<help>
|
|
</help>
|
|
</tool>
|