https://prefect.io logo
Title
y

yogesh raju

01/20/2023, 10:07 AM
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

Christopher Boyd

01/20/2023, 3:15 PM
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

yogesh raju

01/23/2023, 5:14 AM
Thanks for your reply christopher Like can we use it to restart the prefect and graphql agent??
c

Christopher Boyd

01/23/2023, 2:34 PM
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

yogesh raju

01/24/2023, 7:31 AM
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

Christopher Boyd

01/24/2023, 5:58 PM
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

yogesh raju

01/25/2023, 9:13 AM
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.