on 07-22-2010 9:25 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.