Skip to content
Discussion options

You must be logged in to vote

Good question. I don't know actually what happens when a host is shutdown gracefully and whether the current HTTP request (if any) is allowed to finish. I also don't know about Hosted Services, although I presume their CancellationTokens will be triggered, allowing a graceful shutdown.

In any case, Elsa does not handle the ApplicationStopping application lifecycle event.

What Elsa does do however is resume any workflow instances that are still marked as Running during application startup. So even if an ASP.NET Host is suddenly taken out of memory (i.e. an ungraceful shutdown), Elsa will resume from the last-known state.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tomy2105
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1484 on September 08, 2021 16:22.