<@ULVA73B9P> is it a problem to start the prefect ...
# ask-marvin
j
@Marvin is it a problem to start the prefect server and agents from within the same parent python process?
m
Starting a Prefect server and agents from within the same parent Python process is not directly addressed in the Prefect documentation. However, the process for starting an agent and starting a worker in your environment are virtually identical. You can use the commands
prefect agent start --pool <work pool name>
and
prefect worker start --pool <work pool name>
respectively. If you previously used infrastructure-as-code methods to start an agent, you should be able to continue using it for a worker, provided all uses of
agent
are changed to
worker
. Please note that this information is based on the Prefect documentation and it's always a good idea to test this in a controlled environment before implementing it in a production setting. If you have specific concerns or encounter issues, I recommend reaching out to the Prefect community or support for more detailed guidance.