Jobs execution and user interaction

23 views
Skip to first unread message

mezam

unread,
Jan 18, 2023, 3:26:32 AM1/18/23
to rundeck-discuss
Hello,
I've read this thread already which is dated 2 years ago: https://groups.google.com/g/rundeck-discuss/c/9QQmyWhrgH8/m/UUeMbwOxBQAJ 

Our rundeck 4.8 war installation is on Win 2019 server. Is there a way or a strategy to make a job listen for user input? Based on job output our job runners will evaluate among a list of choices. A human judgement is needed.

rac...@rundeck.com

unread,
Jan 18, 2023, 7:46:36 AM1/18/23
to rundeck-discuss
Hi Mezam,

Probably using some expect equivalent on Windows, this looks ok to "emulate" the UNIX/Linux expect. You can see other alternatives here.

Regards.

mezam

unread,
Jan 18, 2023, 9:48:47 AM1/18/23
to rundeck-discuss
Many thanks Reiner,
unfortunately for this particular orchestrator script (powershell/xaml) the input is not expect-able. When job runs certain values are returned to the user and based on those the input may vary on human judgement. In some cases values change during the job run and the job runner needs to re-evaluate.
Worth filing a feature request or you think is totally away from roadmap?

Regards

rac...@rundeck.com

unread,
Jan 18, 2023, 10:11:30 AM1/18/23
to rundeck-discuss
Hi Mezam,

That's a common question, Rundeck doesn't work in that way. If I understand your use case, you want to put some manual values in the middle of execution and depending on that values the script starts a conditional behavior.

In that case, the best approach is to define a behavior using the Ruleset Strategy (only for Process Automation, formerly "Rundeck Enterprise"), but always the behavior is pre-defined in the Workflow.

On Rundeck OSS you can put all the workflow logic in a script step depending on some job options (if... then... else), but like Ruleset Strategy, the behavior is explicitly defined in your workflow.

A good approach in your use case could be to split your script into two jobs: the first one that saves the output in a file and the second one that collects those results and ask the user to execute an action from a job option.

Hope it helps!

mezam

unread,
Jan 18, 2023, 11:55:03 AM1/18/23
to rundeck-discuss
Hi Reiner,
"...  you want to put some manual values in the middle of execution and depending on that values the script starts a conditional behavior..."  yes, that is our case.

thanks! I'll see to try the second suggestion.
cheers

Reply all
Reply to author
Forward
0 new messages