KG
02/27/2024, 9:46 PMraise UnfinishedRun(
prefect.exceptions.UnfinishedRun: Run is in PENDING state, its result is not available.)
Is this intended? Is there another way of cancelling or deleting Pending flowruns without using the UIMarvin
02/27/2024, 9:47 PMPREFECT_EXPERIMENTAL_ENABLE_ENHANCED_CANCELLATION=True
on your worker or agents. If this doesn't work for you or you encounter any issues, Prefect suggests letting them know in Slack or opening a Github issue.
Documentation mentioning cancellation:
- Flow Concepts in Prefect Docs
Currently, there doesn't seem to be a direct method to bulk delete or cancel multiple flow runs with a PENDING state, as suggested by a github issue that points out there is no easy way to clear, cancel, or delete many runs with arbitrary state or tag when needed.
You may want to follow this issue for updates on whether such a feature will be implemented, or contribute to the discussion if you need a more immediate solution.