Alberto de Santos
10/22/2020, 2:14 PMnohup
, however, in order to do that, I have to execute everything with the flow.run_agent()
option and then comment that line of code to execute the flows.
The alternative is through CLI, however, I couldn’t make it work (it doesn’t file the libraries I need to execute, despite of using the -p
param)
Which is your experience/view here?Raphaël Riel
10/22/2020, 2:18 PMecho "Starting Agent"
pipenv run ./cli.py start-agent "${AGENT_NAME}" --token-secret-id=${AGENT_RUNNER_TOKEN_SECRET_ID}
Alberto de Santos
10/22/2020, 2:19 PMRaphaël Riel
10/22/2020, 2:19 PMDylan
Raphaël Riel
10/22/2020, 2:21 PMDylan
DockerAgent
available as well as for Fargate and KubernetesRaphaël Riel
10/22/2020, 2:26 PMDylan
Raphaël Riel
10/22/2020, 2:28 PMDylan
Alberto de Santos
10/22/2020, 5:37 PMPedro Machado
10/22/2020, 11:24 PMprefect agent
with supervisord
and was considering an alternative.
Would docker-compose be a good way to run the agent inside of a container using a `cli`similar to Raphaël's? Is docker-compose with a restart policy a good way to restart the agent if it dies unexpectedly?Raphaël Riel
10/23/2020, 12:11 PMdumb-init
)
IMO this is a perfectly valid setup if you’re trusting docker-compose!Alberto de Santos
10/23/2020, 8:41 PMset_temporary_function
, please?
My only purpose is to learn a way to do it. I did it already by my own (and it works), but wanted to know how you managed to do it with the with set_temporary_function(params):
approach.
Please, feel free not to answer 🙂Raphaël Riel
10/26/2020, 11:48 AMfrom prefect.utilities.configuration import set_temporary_config
Alberto de Santos
10/26/2020, 11:48 AM