Jobref calls should support overriding node filter params
Reported by Alex-SF | November 29th, 2010 @ 08:45 AM
It is sometimes required for a coordination job to call subordinate jobs overriding them with its node filter and dispatch flags. This is needed because each job must be defined with filter expressions and dispatch flags of its own.
A coordination job must be able to override these like is
possible with the run
command arguments. Eg
run ‐I tags=dev ‐X os‐family=windows ‐C 2 ‐K ‐j ’test/Job1’ -- -optionA valA
The jobref flag might support this syntax, too.
Three hypothetical strawman examples illustrate the theme:
Ex#1) Overload arg line attribute using the double dash as delimiter:
<jobref group="test" name="Job1"/>
<arg line="‐I tags=dev ‐X os‐family=windows ‐C 2 ‐K -- -optionA valA"/>
</jobref>
Ex#2) Allow nodefilters and dispatch tags as nested elements:
<jobref group="test" name="Job1"/>
<arg line="-optionA valA"/>
<nodefilters excludeprecedence="true">
<include>
<os-family>windows</os-family>
</include>
<exclude>
<tags>dev</tags>
</exclude>
</nodefilters>
<dispatch>
<threadcount>2</threadcount>
<keepgoing>true</keepgoing>
</dispatch>
</jobref>
Ex#3) Provide a shorthand tag that implicitly overrides the
nodefilters and
dispatch configuration for the subordinate job:
<jobref group="test" name="Job1"/>
<override nodefilters="true" dispatch="true"/>
<arg line="-optionA valA"/>
</jobref>
Comments and changes to this ticket
-
Deleted User November 29th, 2010 @ 08:29 PM
Is it the case that a job with a filter defined will still be honored?
-
Alex-SF December 29th, 2010 @ 05:50 PM
- Milestone cleared.
- Milestone order changed from 14 to 0
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
(DEPRECATED) Please use github issues for issue tracking at http://github.com/dtolabs/rundeck/issues
People watching this ticket
Tags
Referenced by
- 484 Decouple Jobs from Workflows and Nodesets Similar issues/requests: #70, #99, #185, #413, #414, #419...