I'm speaking in hypotheticals here, I haven't dug ...
# prefect-community
k
I'm speaking in hypotheticals here, I haven't dug entirely through the framework (minus the easy first example), though I wanted to ask a few questions: 1. Can if I had a hypothetical Reinforcement Learning training pipeline run through prefect, could it handle millions of interactions over the course of a training period? 2. Is it possible to push information from the end of the flow to the beginning if a condition is met? 3. If so, how fast would that be? Can I use Dask to split certain tasks up between machines and concurrently process more tasks? 4. Would that use the
LOOP
API?
When I say push from end to start, I mean something like the
.connect
flag from
streamz
. https://streamz.readthedocs.io/en/latest/core.html#recursion-and-feedback
d
Hey Kevin! Prefect Core + Prefect Scheduler would definitely solve your usecase. I’ll run through what I’d suggest
First, I’d set up a Dask Cluster and configure your flows to run on that cluster using our
RemoteEnivronment
I’d set your flow to run with
Parameters
As the last task in your flow, if the condition is met, I would kick off a new run of your flow using the Prefect Scheduler GraphQL API via the python client
Your hypothetical Reinforcement Learning training pipeline would handle millions of interactions over the course of a training period
and you could run an arbitrary number of flows on the same infrastructure
Let me know if this helps @Kevin Hill!
Here’s some supporting documentation: