Hi guys, So there something unexpected happening w...
# prefect-community
k
Hi guys, So there something unexpected happening with my prefect flows. So I deployed my flows last night and agent stopped working around 20:01 UTC and when I opened the screen that was running the agent , the agent came back alive again . The agent is supposed to run flows every half an hour. Look at the time stamps.
Copy code
20:01:27.858 | INFO    | Flow run 'lovely-emu' - Created task run 'RAREA12to13-2f7bbdf5-0' for task 'RAREA12to13'
20:01:27.864 | INFO    | Flow run 'lovely-emu' - Executing 'RAREA12to13-2f7bbdf5-0' immediately...
20:01:29.858 | INFO    | Task run 'RAREA12to13-2f7bbdf5-0' - Finished in state Completed()
20:01:30.235 | INFO    | Flow run 'lovely-emu' - Finished in state Completed('All states completed.')
05:28:05.934 | INFO    | prefect.infrastructure.process - Opening process 'augmented-warthog'...
05:28:16.139 | INFO    | prefect.infrastructure.process - Process 'quaint-barracuda' exited cleanly.
05:28:25.094 | INFO    | prefect.infrastructure.process - Process 'benign-myna' exited cleanly.
05:28:35.179 | INFO    | prefect.infrastructure.process - Process 'pastel-swine' exited cleanly.
05:28:35.180 | INFO    | prefect.infrastructure.process - Opening process 'helpful-turkey'...
05:28:35.230 | INFO    | prefect.infrastructure.process - Opening process 'enormous-gecko'...
05:28:55.267 | INFO    | prefect.infrastructure.process - Process 'lumpy-wallaby' exited cleanly.                                  05:29:13.009 | INFO    | prefect.infrastructure.process - Process 'rigorous-elephant' exited cleanly.
05:29:31.230 | INFO    | prefect.infrastructure.process - Process 'lovely-emu' exited cleanly.20:01:27.858 | INFO    | Flow run 'lovely-emu' - Created task run 'RAREA12to13-2f7bbdf5-0' for task 'RAREA12to13'
20:01:27.864 | INFO    | Flow run 'lovely-emu' - Executing 'RAREA12to13-2f7bbdf5-0' immediately...
20:01:29.858 | INFO    | Task run 'RAREA12to13-2f7bbdf5-0' - Finished in state Completed()
20:01:30.235 | INFO    | Flow run 'lovely-emu' - Finished in state Completed('All states completed.')
05:28:05.934 | INFO    | prefect.infrastructure.process - Opening process 'augmented-warthog'...
05:28:16.139 | INFO    | prefect.infrastructure.process - Process 'quaint-barracuda' exited cleanly.
05:28:25.094 | INFO    | prefect.infrastructure.process - Process 'benign-myna' exited cleanly.
05:28:35.179 | INFO    | prefect.infrastructure.process - Process 'pastel-swine' exited cleanly.
05:28:35.180 | INFO    | prefect.infrastructure.process - Opening process 'helpful-turkey'...
05:28:35.230 | INFO    | prefect.infrastructure.process - Opening process 'enormous-gecko'...
05:28:55.267 | INFO    | prefect.infrastructure.process - Process 'lumpy-wallaby' exited cleanly.                                  05:29:13.009 | INFO    | prefect.infrastructure.process - Process 'rigorous-elephant' exited cleanly.
05:29:31.230 | INFO    | prefect.infrastructure.process - Process 'lovely-emu' exited cleanly.
Another weird thing about this is , even though I have enabled notifications for these flows from the prefect UI, no notifications were sent for the flow being in 'late' state.
c
Hi Khyaati, are your running the agent as a process or as a service?
based on what you said, it seems like it’s not running as a service, but in foreground, so when you bg, it’s not processing. I would take a look at this discourse: https://discourse.prefect.io/t/how-to-run-a-prefect-2-agent-as-a-systemd-service-on-linux/1450
k
Thanks, i was just running it as a screen in my Linux system..