20.39. kb-00038: Expand Templates from Failed Job¶
20.39.1. Knowledge Base Article: kb-00038¶
How to expand templates from a task (job) that may have failed.
This procedure shows how to do it via API. The Web Portal will show rendered templates from a Job, in the Jobs Log menu section.
If you have a task/template that has failed, once it’s been run by the Job system, you can collect the rendered template. The rendered template will be in JSON format, so it may be hard to parse.
# set Endpoint and User/Pass appropriately for your environment export RS_ENDPOINT="https://127.0.0.1:8092" export RS_KEY="rocketskates:r0cketsk8ts" # get your Job ID from the failed job, and set accordingly: JOBID="abcdefghijklmnopqrstuvwxyz" curl -k -u $RS_KEY $RS_ENDPOINT/api/v3/jobs/$JOBID/actions > $JOBID.json # optional - if you have the remarshal tools installed: json2yaml $JOBID.json > $JOBID.yaml
20.39.4. Additional Information¶
Additional resources and information related to this Knowledge Base article.
184.108.40.206. See Also¶
Web Portal Jobs menu, and rendered templates on each Job Log
rendered templates, jobs, job log
220.127.116.11. Revision Information¶
KB Article : kb-00038 initial release: Wed Jun 10 12:52:03 PDT 2020 updated release: Wed Jun 10 12:52:03 PDT 2020