https://prefect.io logo
Title
s

simon thelin

11/26/2019, 6:13 PM
Hello people, this might be a stupid question. I am currently customising a docker-compose where I want to do a small demo with prefect locally. I am following the tutorials and right now I am trying to understand the
agent
. If I want to spin it up locally just to try I tried:
pipenv run prefect agent start
But I get that no token is provided, according to the
DOC
it seems like:
prefect.config.cloud.auth_token
should provide this to me automatically? I don't really find the documentation in how to spin it up with the
UI
really intuitive and if somebody can explain how to set the
TOKEN
locally I would appreciate it.
d

Dylan

11/26/2019, 6:14 PM
Hi Simon, the agent is responsible for running flows with Prefect Cloud. Do you have a Cloud account?
s

simon thelin

11/26/2019, 6:14 PM
The cloud service seems to be down, do I need this to be able to spin up the
UI
locally?
đź‘€ 1
Or maybe I have misunderstood the concept of it. I can see this from the docs:
2019-09-01 12:24:59,482 - agent - INFO - Agent successfully connected to Prefect Cloud
So it seems I need to have a connection there I guess. My bad.
d

Dylan

11/26/2019, 6:16 PM
We’re up at the moment
s

simon thelin

11/26/2019, 6:16 PM
Okay I will check again
d

Dylan

11/26/2019, 6:17 PM
To get a
RUNNER
scoped token to pass to your agent, you’ll need to log into Prefect Cloud’s UI and go to Team -> API Tokens
s

simon thelin

11/26/2019, 6:17 PM
I see, my bad. I currently get this.
We're currently in beta but letting new users in every day. As soon as we're ready for you we'll be in touch.
Look for an email from <mailto:hello@prefect.io|hello@prefect.io>!
When I login.
d

Dylan

11/26/2019, 6:19 PM
That’s currently expected
s

simon thelin

11/26/2019, 6:19 PM
Okay so do I need to buy something to be able to run it locally with the UI?
since I can't reach the site.
d

Dylan

11/26/2019, 6:20 PM
However, you can always run your flow by calling
flow.run()
s

simon thelin

11/26/2019, 6:20 PM
yes but that is with no UI, which makes it rather uninteresting atm
want to be able to compare it with airflow
so do I need to buy the cloud service to spin it up?
d

Dylan

11/26/2019, 6:22 PM
Prefect Core on its own doesn’t have a UI since that requires a persistence layer, auth, etc which we found were things users didn’t actually want to manage themselves
Prefect Scheduler is free!
s

simon thelin

11/26/2019, 6:23 PM
so again, to have the UI I need to buy the cloud service?
s

simon thelin

11/26/2019, 6:24 PM
okay thanks
đź‘Ť
d

Dylan

11/26/2019, 6:25 PM
You can learn a little more about how data moves between core and cloud here: https://docs.prefect.io/cloud/dataflow.html
s

simon thelin

11/26/2019, 6:27 PM
thanks
d

Dylan

11/26/2019, 6:32 PM
Anytime! Let us know if there’s anything else we can do to help