Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Naive question on workflow strategy

32 views
Skip to first unread message

Mathias Michel

unread,
Dec 15, 2024, 5:30:33 PM12/15/24
to rundeck-discuss
Hello

Using Rundeck5.8.0 Community edition.
I have a goal to execute all steps in order on every node.

* I can't choose Parallel because steps are not ordered.
* If  I choose Sequential, and a host fails on step 2, remaining steps will never be executed on the other nodes.
* If I choose Node First, and a host fails, remaining hosts in the list will never proceed.

Is there a way to do what I expect with either Community edition or paid product ?

I can imagine two ways of doing it
 * In Sequential, ability to "Run again on uncompleted hosts" command, so the failing host is excluded but the others can keep on running. Maybe it can be done with an Error Handler ?

* In Node First, ability to skip failing host and move on to next host. I could not see how to do this.

Any feedback welcome

Best Regards,

Mathias
Message has been deleted

rac...@rundeck.com

unread,
Dec 16, 2024, 6:36:28 AM12/16/24
to rundeck-discuss

Hi Mathias,

To do so:

  1. Set the “Node First” Strategy.
  2. Go to the Nodes tab, set your filter, and count the number of nodes. Put that number on the “Thread Count” field (in my example I’m using 3 because I’m dispatching my job against 3 nodes).
  3. Check the result here.

If you want to run the remaining steps even if the previous one fails, set “Run Remaining steps before failing” (Workflow tab). Check the result here.

This is my job definition example, feel free to use/edit it.

- defaultTab: nodes description: '' executionEnabled: true id: e86cc06f-e91d-485b-aea1-7c511c71758e loglevel: INFO name: HelloWorld nodeFilterEditable: false nodefilters: dispatch: excludePrecedence: true keepgoing: true rankOrder: ascending successOnEmptyNodeFilter: false threadcount: '3' filter: node.* nodesSelectedByDefault: true plugins: ExecutionLifecycle: {} scheduleEnabled: true sequence: commands: - exec: sleep 2; echo "step 1" - exec: sleep 2; cat file - exec: sleep 2; echo "step 3" keepgoing: false strategy: node-first uuid: e86cc06f-e91d-485b-aea1-7c511c71758e

Greetings!

Mathias Michel

unread,
Dec 16, 2024, 4:34:36 PM12/16/24
to rundeck-discuss
OK, good to know.

This works !
So I guess it confirms we can't have this behavior with a thread limit.  
I had an issue running my workflow on my ~50 nodes in parallel, so would like the same effect with batches of 10, but it seems not possible.

Best regards,

rac...@rundeck.com

unread,
Dec 16, 2024, 6:03:17 PM12/16/24
to rundeck-discuss

Hi Mathias,

I had an issue running my workflow on my ~50 nodes in parallel, so would like the same effect with batches of 10, but it seems not possible.

Take a look at this.

Hope it helps!

Reply all
Reply to author
Forward
0 new messages