Saulius Beinorius11/18/2020, 11:55 AM
Jim Crist-Harif11/18/2020, 11:15 PM
task (see https://docs.prefect.io/core/idioms/resource-manager.html) for creating/destroying an emr cluster and use that within your flow. I'm not familiar enough with EMR to provide more information than that, but hopefully that's enough to get you started.
Saulius Beinorius11/19/2020, 9:58 AM
Jim Crist-Harif11/19/2020, 7:01 PM
I am assuming that the remaining tasks would be failed?This is correct, unless you explicitly configure your tasks to still run on upstream task failure.
Can I then resume the flow from a specific task and have the resource manager start automatically as well?Currently this won't work nicely, as the cluster won't be restarted. However, your question prompted me to fix this :), see https://github.com/PrefectHQ/prefect/pull/3689. I'd expect this to be fixed and out in the next release (thanks for the reminder!).
Saulius Beinorius11/20/2020, 8:16 AM