Hello, I just have a quick question. Can I use Pre...
# ask-community
r
Hello, I just have a quick question. Can I use Prefect without spawning a server? I am looking for a tool to run a one-off workflow (think a glorified
make
), and wondering if Prefect is a good fit
n
yes!
you can use prefect cloud and then you just need to run your code and observe/orchestrate from app.prefect.cloud
r
But I need it to run offline
n
gotcha, so you could use the ephemeral API and not run a server - meaning just
pip install prefect
and then wrap a python function in
@flow
which will start writing all the state changes to a sqlite on disk
but then to view runs in a UI etc youd have to run a server somewhere
r
Does it have console logging?
n
yep it does!
r
I am trying to see if prefect can be used for running experiments, aggregating results, and making analysis, so I don't really need a UI
Do you have any recommendation on where to start with the documentation?
n
hello world
wait_for
and
.map
with tasks task runners
r
Can I make sure some tasks run exclusively with no other concurrent task?
n
a good chunk of our feature set more or less requires a server, but the core stuff like composing tasks (into a flow or subflow) and adding retries / caching etc doesn't i will say that the ephemeral api isn't meant for scale though, so at some point you may find you'd need a server (which can run without internet connection by the way) and yep
r
I see. Thank you