Jason Noxon12/27/2022, 2:31 PM
Nate12/27/2022, 2:33 PM
However, I want this setup under a "prefect" user and running automagicallyI assume you mean you want to run an agent on this ubuntu machine, in which case you could check this out if you mean something else, feel free to clarify!
Jason Noxon12/27/2022, 2:34 PM
Nate12/27/2022, 2:35 PM
Jason Noxon12/28/2022, 12:57 PM
Nate12/28/2022, 6:36 PM
command with whatever python interpreter you choose
prefect agent start ...
this may be useful context it's my opinion that running virtual environments (to enable flow runs using the Process infrastructure) on VMs like this becomes difficult to manage at scale, so I would suggest that you may want to install docker on your VM and then you don't need to worry about the python environment your agent is running in on a project-by-project basis, because your dependencies for each project are built into some DockerContainer (more on building images)
... ExecStart=/path/to/my/venv/python prefect agent start -q myQueue ...
Jason Noxon12/28/2022, 7:39 PM
Nate12/28/2022, 7:41 PM
Taylor Curran12/28/2022, 8:52 PM
Jason Noxon12/30/2022, 1:30 PM