Adi Gandra
03/11/2022, 3:32 PM"cpu_request": "4",
On describe pod that is spun up:
Requests:
cpu: 6
memory: 16Gi
Why is this happening on the restarted flow run that i’m trying?Anna Geller
03/11/2022, 3:56 PMi’m trying to restart but for some reason when its spinning up the new pod its requesting CPU that the original run config did not set.Restarts normally don't create a new flow run, instead they update task run history for failed task. So if your Kubernetes pod defined for this flow run is no longer around, Prefect probably does it best to infer that using the default configuration set on the agent, that's why you probably see the same config that is used by default when you don't specify any custom CPU request on your
KubernetesRun
now I need to restart itThis is tricky for the reasons I mentioned above. Maybe you can temporarily comment out the tasks you don't wanna run, register your flow, trigger your flow run with the task that you need to rerun (2 CLI commands will do) then you can uncomment and reregister the flow - that's probably the fastest way alternatively, with Prefect you can always (re)run your flow locally so that's also an option
Adi Gandra
03/11/2022, 4:39 PMAnna Geller
03/11/2022, 6:16 PMAdi Gandra
03/11/2022, 9:05 PMAnna Geller
03/12/2022, 9:33 PM