Hi! we have installed prefect with graphql as agen...
# ask-community
y
Hi! we have installed prefect with graphql as agent in linux VM. The VM was restarted and the prefect is down now how do i restart prefect Please help me resolving this issue..
c
Hi @yogesh raju - you can try following this to set it to run as a service (on reboot): https://discourse.prefect.io/t/how-to-run-a-prefect-2-agent-as-a-systemd-service-on-linux/1450
y
Thanks for your reply christopher Like can we use it to restart the prefect and graphql agent??
c
Hi Yogesh, I don’t understand your question. Are you using Prefect1, or Prefect2? And what is installed on the VM - just the agent, or agent + server? In either scenario, yes, you can set it up using systemd
y
Hi christopher, i am using prefect 1 and installed on Linux server
agents are configured using grahql agent
recently when the VM got crashed we are not able to restart the queriyng agent i.e, Graphql
and development was made by other vendor which we don't have any connections now
hope i got you a Point!!!!
c
I dont understand what you mean - there is just one agent
there is the prefect agent, and the prefect server - both can be scheduled as services to run via systemd
y
Like we are using graphQL as agent to schedule python scripts, which is installed in Prefect 1. we need to restart this Agent. Can you help us how to restart this GraphQL Agent.