John Mizerany
05/30/2023, 3:21 PMJamie Zieziula
05/30/2023, 3:27 PMZanie
EXTRA_PIP_PACKAGES
variable but that increase the startup time of each job.John Mizerany
05/30/2023, 3:37 PMZanie
John Mizerany
05/30/2023, 3:38 PMJohn Mizerany
05/30/2023, 3:40 PMZanie
Zanie
John Mizerany
05/30/2023, 3:42 PMJohn Mizerany
05/31/2023, 3:08 PMEXTRA_PIP_PACKAGES
argument in my deployment. I am using terraform with helm_release to deploy, and when I passed in the argument worker.extraEnvVars.EXTRA_PIP_PACKAGES
│ Error: YAML parse error on prefect-worker/templates/deployment.yaml: error converting YAML to JSON: yaml: line 67: did not find expected '-' indicator
I looked around and saw that I could also do env.EXTRA_PIP_PACKAGES
instead but it looks like the helm chart doesn’t support that if I am looking in the right place?Jamie Zieziula
05/31/2023, 3:13 PMworker.extraEnvVars[0].name = EXTRA_PIP_PACKAGES
worker.extraEnvVars[0].value = PACKAGE_NAME
see hereJohn Mizerany
05/31/2023, 3:15 PMset {
name = "worker.extraEnvVars[0]"
value = "prefect-slack==0.1.2"
}
Jamie Zieziula
05/31/2023, 3:51 PMresource "helm_release" "prefect" {
repository = "<https://prefecthq.github.io/prefect-helm>"
chart = "prefect-worker"
version = "2023.05.25"
name = "prefect-worker"
values = [<<-EOF
worker:
extraEnvVars:
- name: EXTRA_PIP_PACKAGES
value: prefect-slack==0.1.2
EOF
]
}
John Mizerany
05/31/2023, 5:14 PMJamie Zieziula
05/31/2023, 5:29 PMJamie Zieziula
05/31/2023, 5:30 PMJamie Zieziula
05/31/2023, 5:34 PMdeployments:
- name: Deployment Name
version: null
tags: []
description: null
schedule: {}
flow_name: null
entrypoint: path/to/flow.py:flow
parameters: {}
work_pool:
name: kubernetes
job_variables:
env:
EXTRA_PIP_PACKAGES: prefect-slack==0.1.2
John Mizerany
05/31/2023, 5:40 PMJohn Mizerany
05/31/2023, 5:41 PMJamie Zieziula
05/31/2023, 5:53 PM