x
login Signup

can I change a jobStep timeout through the API

I have two instance of a smoke run, using the same flow. In InstA, they need a timeout on a certain step of 60mins. In InstB, they need a timeout on that step of 90mins. Can I overwrite the default setting that I setup in the Step definition form?

I found this API for externally managed jobs:

 ectool modifyJobSTep $COMMANDER_JOBSTEPID --timeLimit 90
 or
 $cmdr->modifyJobStep ($ENV{COMMANDER_JOBSTEPID}, {timeLimit => "90"});

but I want to run this from within the running jobStep, to change the timeout value based on the conditions of the run. Will that work? (I'll try it while waiting for feedback...)

thanks!

avatar image By h.berggren 65 asked May 03 at 08:13 PM
more ▼
(comments are locked)
10|750 characters needed characters left

2 answers: sort voted first

Well, testing this failed:

 ectool: 'timeLimit' is not a valid option for 'modifyJobStep' Usage: modifyJobStep <jobStepId> [--status <pending|runnable|scheduled|running|completed>]

The documentation doesn't seem to imply that the only option for modifyJobStep is --status. It lists lots of various jobStep properties that allegedly are modify-able...

So, is there a way to change, or extend a jobStep timeLimit property dynamically from within the jobStep?

thanks for any help!

avatar image By h.berggren 65 answered May 03 at 08:20 PM
more ▼
(comments are locked)
10|750 characters needed characters left

You cannot modify a step once it started. In fact once the procedure starts, Flow get s a copy of it to make it impervious to any change. The only way around that is to use dynamic steps (createJobStep) where you could set the time limit dynamically.

avatar image By lrochette 5.9k answered May 07 at 12:59 PM
more ▼
(comments are locked)
10|750 characters needed characters left
Your answer
toggle preview:

Up to 8 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question


Topics:

x53
x14

asked: May 03 at 08:13 PM

Seen: 13 times

Last Updated: May 07 at 12:59 PM

Related Questions