Hey! How can I keep an ECS Agent running forever w...
# ask-community
k
Hey! How can I keep an ECS Agent running forever without timing out on Fargate without an EC2 instance??
m
Hello Kelly! You can use ECS Service, it can run agent task definition and ECS service scheduler will restart agent task in case if it failed.
s
@Mariia Kerimova is there a tutorial for this?
m
Hello! I did open a PR, but it wasn't merged yet. You can check it out here: https://github.com/PrefectHQ/prefect/pull/4302
s
Thank you. I'll check it.
A quick question. Does the ECS agent run 24x7 or does it automatically shutdown when there are no tasks around?
m
It should run your agents as long as you want to create flow runs, so most likely 24/7