Jason Noxon
12/27/2022, 2:31 PMNate
12/27/2022, 2:33 PMHowever, 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 Noxon
12/27/2022, 2:34 PMNate
12/27/2022, 2:35 PMJason Noxon
12/28/2022, 12:57 PMNate
12/28/2022, 6:36 PMprefect agent start ...
command with whatever python interpreter you choose
...
ExecStart=/path/to/my/venv/python prefect agent start -q myQueue
...
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)Jason Noxon
12/28/2022, 7:39 PMNate
12/28/2022, 7:41 PMTaylor Curran
12/28/2022, 8:52 PMJason Noxon
12/30/2022, 1:30 PM