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
Zanie
02/09/2021, 4:37 PM
@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
Joël Luijmes
02/09/2021, 7:16 PM
Ah allright, so the job itself notifies the server it is running? or how does it otherwise indicate failure?
z
Zanie
02/09/2021, 7:19 PM
Ah you're right, the agent does check on the jobs in this case
Zanie
02/09/2021, 7:20 PM
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,
)
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.