yep, one thing I'd check out in prefect 2 is deployment
triggers +
webhooks
so:
⢠in prefect 1 land, you can say
curl <https://api.prefect.cloud/hooks/XXXX>
from a flow
⢠that emits an event to your prefect 2 workspace, the events system picks up
my.prefect1.flow.emitted.an.event
and because you have this deployment trigger on your prefect 2 deployment, your prefect 2 flow gets kicked off
and theres lots of stuff here, you can put params for the prefect 2 flow in the webhook payload and stuff but this would be a cool way to do event driven stuff in general
alternatively you'd be free to just make a vanilla POST request to
/create_flow_run_from_deployment
from prefect 1 land instead