dbx icon indicating copy to clipboard operation
dbx copied to clipboard

How to get the rendered result of jinjia2 for processing

Open nonpool opened this issue 2 years ago • 1 comments
trafficstars

I want to automatically add some attributes to each task,such as {"--job-id": {{job_id}}}

All I can think of is to get the workflow file rendered by jinjia2 and add attributes. Of course, if there is a better way, please let me know

  • dbx version used:
  • 0.8.9

nonpool avatar Jun 05 '23 05:06 nonpool

hi @nonpool ,

you can write the deployment result into a file, e.g.:

dbx deploy ... --write-specs-to-file=deployment-result.json

Would that be something you're looking for, or you want to see the rendered result prior to deployment?

renardeinside avatar Jun 12 '23 09:06 renardeinside