Wei Hong Ho
04/27/2023, 5:54 PMprefect agent
in the background? and redirect standard error and output to a log file? something like nohup >> logsBianca Hoch
04/27/2023, 6:08 PMpip install prefect
2. Set up Prefect to connect to the server or Prefect Cloud by following the appropriate instructions in this guide.
3. Create a systemd service file for the Prefect agent, and set the ExecStart
directive to point to the Prefect agent command, like this:
ExecStart=/usr/local/bin/prefect agent start -q YOUR_WORK_QUEUE_NAME
If you're using a virtual environment, you'll need to adjust the ExecStart
path to point to the prefect
executable within your virtual environment's bin
subdirectory.Wei Hong Ho
04/27/2023, 6:15 PM