Saulius Beinorius
11/18/2020, 11:55 AMJim Crist-Harif
11/18/2020, 11:15 PMresource_manager
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 Beinorius
11/19/2020, 9:58 AMJim Crist-Harif
11/19/2020, 7:01 PMI 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 Beinorius
11/20/2020, 8:16 AM