Mitch
11/13/2024, 2:02 AMMarvin
11/13/2024, 2:02 AM"worker-1"
, "worker-2"
, etc.
3. Use Task-level or Flow-level Constraints: When you define a flow or subflow, you can specify where it should run by using tags or some other mechanism supported by Prefect.
4. Deploy Separately with Constraints: When deploying each flow or subflow, specify constraints or priorities so that Prefect's work queue assigns them to the desired workers.
However, according to some GitHub issues (#15415 and #5853), there might be bugs or limitations when running subflows in parallel. It's worth checking if these issues affect your use case or if there are updates available that address these concerns.
If you find that these limitations or bugs are causing issues for your setup, keeping an eye on the Prefect repository for updates or linking up with the community for workarounds could be beneficial. It's also possible that adjustments to task runners, tags, or deployment strategies may offer a workaround.
For further guidance, inspect the official documentation or engage with the Prefect community to share your specific use case and gather insights on potential resolutions or strategies.
Hopefully, this helps you get each of your subflows to moonwalk onto separate machines with a bit of grace!Mitch
11/13/2024, 2:19 AMMarvin
11/13/2024, 2:19 AM