<@ULVA73B9P> how do I exit a running deployment wi...
# ask-marvin
j
@Marvin how do I exit a running deployment without emitting the
Crash
state, but instead
Completed
?
m
The Prefect documentation doesn't seem to have a direct answer on how to exit a running deployment with a
Completed
state instead of emitting a
Crash
state. However, you may attempt to handle your flow's termination logic in a way that it gracefully shuts down. This might involve using custom state handlers or managing exceptions to ensure that all tasks are completed as required before stopping the flow. For more details on controlling flow runs, refer to the Prefect documentation on Flows. If a standard graceful shutdown is not possible through Prefect's current functionality, you might want to raise this in the Prefect GitHub repository as a feature request or check if there have been similar issues. Would you like me to search for related GitHub issues?