microsoft / durabletask-go

The Durable Task Framework is a lightweight, embeddable engine for writing durable, fault-tolerant business logic (orchestrations) as ordinary code.
Apache License 2.0
198 stars 25 forks source link

Improve logging and handling of shutdown process #32

Closed cgillum closed 1 year ago

cgillum commented 1 year ago

Depending on the timing of worker shutdown (for example, if it happens while there are outstanding activity or orchestrator executions), there can be confusing error messages written to the logs. This PR cleans up the error handling and logging for some of the commonly encountered shutdown paths.