You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix!: Running jobs with env templates does not support parameters
The Open Job Description specification https://github.com/OpenJobDescription/openjd-specifications/wiki/2023-09-Template-Schemas
includes both job and environment templates. The openjd CLI lets
you run a job in the context of one or more externally defined templates
via `openjd run job.yaml --environment env.yaml`.
Environment templates can define parameters just like jobs, but when
they did this the CLI tool failed to run them. This was because the
parameter values were not being processed and forwarded based on the
full environment context, they were being regenerated later without the
environments. This change fixes that to forward the parameters.
BREAKING CHANGE: The functions generate_jobs and job_from_template have
changed to accept the environments and return the job parameters
alongside the job. Constructing the LocalSession class now requires
job parameters.
Signed-off-by: Mark Wiebe <[email protected]>
0 commit comments