cancel
Showing results for 
Search instead for 
Did you mean: 

Job definition - actions tab

Former Member
0 Kudos

Hi,

Is it possible to create a job definition2 by writing a script in the 'actions tab' of job definition1?

The code will be placed under the type 'post running'.

Regards,

Esha Raj

Accepted Solutions (1)

Accepted Solutions (1)

gmblom
Active Contributor
0 Kudos

Hello,

You want to start an additional job from a jobs post running action? That is of course possible, but why don't you use a job chain for that?

Regards Gerben

Former Member
0 Kudos

Hi Gerben,

The only reason I considered using the action tab is because I have a script to run as the next step. So instead of creating a job definition with the new script wouldnt it be better to add the script to the post running action 'source'?

The issue I'm f acing is, if I test the script in shell it works but not when I place it in the source of the post running action.

Regards,

Esha Raj

gmblom
Active Contributor
0 Kudos

Hello,

Most of the times it is more transparent to have different actions in different steps in a job chain. Especially when you want to only restart parts of the different tasks. Also for troubleshooting, if the job goes to error, the error might be in the actual job or in the post running action. Therefore most of the times using a job definition for the script is more convenient. Also the script 'context' is a little different between a job definition and a post running action, that might be the reason your script works in the shell but not in the action.

Did you test your code out in a RedwoodScript job definition?

Hope this helps.

Regards Gerben

Former Member
0 Kudos

Thanks Gerben, Problem solved.

Answers (0)