Karol Wolski
03/28/2024, 9:08 AM--base-job-template
during startup of prefect worker. And it's working fine, I'm able to create deployment and it runs just fine. But there is a scenario where I would like to update kubernetes job manifest - what should I do?
This is what I do:
1. Update prefect worker configuration and deploy it to my Kubernetes cluster with new --base-job-template
2. Because work pool already exists, it's not updated. So I'm removing work pool and then worker creates new one with updated configuration.
3. Point 2 caused all deployments to lose work pool, and none of the execution is scheduled, it's in Late
state. The only way is to redploy it again, and it's problematic with 1000+ deployments.
Is it supposed to work like that? Are there any better ways to update base-job-template?Olli Kavén
03/28/2024, 9:45 AMKarol Wolski
03/28/2024, 9:47 AMOlli Kavén
03/28/2024, 9:55 AMOlli Kavén
03/28/2024, 9:56 AMKarol Wolski
03/28/2024, 9:57 AMKarol Wolski
03/28/2024, 12:40 PMbase-job-template
I could specify some non-existant tag, and real tag would be overwritten by deployment.
Or you are just handling it with your CI pipeline?Kevin Grismore
03/28/2024, 9:05 PMKevin Grismore
03/28/2024, 9:06 PMKevin Grismore
03/28/2024, 9:07 PM"{{ jinja_template_fields }}"
is that you can set them through a deployment's job_variables
so they don't have to change on the work pool all the timeKevin Grismore
03/28/2024, 9:08 PMKarol Wolski
03/29/2024, 8:20 AMOlli Kavén
04/02/2024, 6:11 AM