Arnon Kimhi
10/15/2023, 10:17 AMprefect.yaml
with a deployment that uses the worker pool.
In the worker pool configurations I have added customizations
key to the job_variables
for some reason the patch is never applied.
For example
deployments:
- name: testtest
# description: null
version: testversion1
# The work queue that will handle this deployment's runs
path: tespath
entrypoint: test.py:test_flow
work_pool:
name: prefect2-worker
job_variables:
customizations:
- op: "add"
path: "/spec/parallelism/-"
value: 6
- op: "add"
path: "/spec/template/spec/containers/0/env/-"
value:
name: ENV_VAR
value: "env value"
The above is just a test case for making sure the API works, in the reality we should have some advanced customizations for our job templates (for each deployment)Arnon Kimhi
10/16/2023, 11:08 AMOlli Kavén
10/17/2023, 9:52 AM