Paulo Benatto
01/19/2022, 3:04 PMclient = Client(api_token=token)
client.register(flow, project_name=project)
from prefect import config
# this looks wrong
config.cloud.agent.auth_token = token
LocalAgent(name=name).start()
using command line to start agent works fine:
⢠prefect auth login -t TOKEN
⢠prefect agent local start
I would like to run the agent from python and inject the token in my agent š¤
thanksKevin Kho
01/19/2022, 3:11 PMprefect auth login -k API_KEY
, I think the Python client should be able to fetch it. Note keys are deprecatedPaulo Benatto
01/19/2022, 3:18 PMprefect.utilities.exceptions.AuthorizationError: No agent API token provided.
Kevin Kho
01/19/2022, 3:39 PMPaulo Benatto
01/19/2022, 3:56 PMprefect auth login
?Kevin Kho
01/19/2022, 3:58 PMauth.toml
file and then Prefect pulls it from there in this lineconfig
is set when you import PrefectPaulo Benatto
01/19/2022, 4:00 PM