What happens if I update Prefect (or restart it) w...
# prefect-server
j
What happens if I update Prefect (or restart it) while running a flow (specifically Kubernetes Agent)? Will the new agent correctly monitor the flow or could it introduce undefined behhavior?
1
z
@Joël Luijmes I can double check -- but I'm pretty sure the agent just creates the job and moves on, it doesn't monitor the flow anymore so you should be fine.
j
Ah allright, so the job itself notifies the server it is running? or how does it otherwise indicate failure?
z
Ah you're right, the agent does check on the jobs in this case
A version update should only matter if we change the identifiers though since the agent isn't keeping track of what jobs it has created e.g.
Copy code
jobs = self.batch_client.list_namespaced_job(
                    namespace=self.namespace,
                    label_selector="<http://prefect.io/identifier|prefect.io/identifier>",
                    limit=20,
                    _continue=_continue,
                )
j
Ah nice, then it doesn’t matter when I decide to updatte my prefect 🙂 Thanks for checking out the details!