https://prefect.io logo
Title
d

David Wang

04/05/2023, 1:16 PM
Can I start a subflow and leave it running after the parent flow ends? Basically I have a job that has a component that needs to be done sequentially (but only takes 15 seconds) but that sequential component can trigger another component that can be done concurrently (but will take 45 seconds).
d

Deceivious

04/05/2023, 2:01 PM
https://github.com/PrefectHQ/prefect/blob/main/src/prefect/deployments.py#LL47C20-L47C20 Unsure if this solves ur case. But if the subflows are deployed, then with 0 timeout you could possibly check the result which will not be COMPLETED and just continue on with the main flow while the triggered flow continues.
d

David Wang

04/06/2023, 9:18 PM
I don’t think deployments are the right answer for me. I’m trying to use this pattern here because I need the flows to run in realtime: https://medium.com/the-prefect-blog/serverless-real-time-data-pipelines-on-aws-with-prefect-ecs-and-github-actions-1737c80da3f5