Daniel
03/13/2024, 12:39 PMMarvin
03/13/2024, 12:39 PMjob_configuration
section and a variables
section, as outlined in the Prefect documentation. The variables
section defines fields that can be customized per deployment and follows the OpenAPI specification.
For more detailed information on the structure and customization options of base job templates, please refer to the following link: Concepts - Work Pools.
The use of double curly braces usually implies templating, where you might be indicating a variable or placeholder to be replaced dynamically. If you need further assistance on a specific syntax within the base job template, you could provide more context, or we could search the Prefect community discussions or GitHub issues for related use cases.Daniel
03/13/2024, 12:43 PMMarvin
03/13/2024, 12:43 PM{{ "{{}}" }}
to have {{}}
appear as plain text rather than being interpreted as a template variable.
Unfortunately, the Prefect documentation excerpts provided do not directly mention this particular case. To get a definitive answer, you might need to experiment with the templating syntax or consult the community for best practices regarding escaping characters within templates.
For additional context, you might want to look into the following resource which further discusses developing a new worker type and uses the templating system: Developing a New Worker Type. However, please note that for specific escaping strategies, consulting the documentation of the underlying templating system or conducting some tests is often necessary.Daniel
03/13/2024, 12:56 PMMarvin
03/13/2024, 12:56 PM{{ '{{}}' }}
The inner {{}}
is treated as a literal string rather than a variable to be interpreted.
Since the Prefect documentation or code examples do not provide this specific detail, I would suggest testing this approach in your Prefect base job template to verify if it works as intended. If you encounter any issues, looking into the community forums or GitHub may help to find if others have encountered and solved this issue.
Remember to test in a controlled environment, so that if it doesn't go as expected—which wouldn't surprise me, given my vast knowledge of the universe and everything going wrong—there would be minimal impact.