# prefect-community

Khyaati Jindal

10/26/2022, 8:11 AM
I am observing this behaviour with my prefect agent I am running a agent from EC2 cloud instance ( Ubuntu ) After I leave the screen , the agent run few successfully flow runs ,but after that the agent just seems to pauses. From the prefect ui , i can see the flows goes into a 'late' state , and when i again connect to my EC2 instance and open the terminal screen running my prefect agent, the agent starts running everything imedieatly causing a hike in memory computation and unstacking all the late flows. I have observed this bheaviour of agent with multiple projects running on EC2

Rob Freedy

10/26/2022, 12:54 PM
How are you running your agent? Is this for 1.0 or 2.0? I have found this discourse post to be very helpful for deploying an agent on an EC2 instance:

Khyaati Jindal

10/31/2022, 6:58 AM
I am using prefect 2.0, thanks I will try and check it out