control-net/vr-retreat

Handle Background Worker's exceptions

Open

#30 opened on Dec 29, 2021

 (0 comments) (0 reactions) (0 assignees)C# (1 fork)auto 404
Backendgood first issuehelp wantedmaintenance

Repository metrics

Stars
 (6 stars)
PR merge metrics
 (PR metrics pending)

Description

Summary

In case the background worker encounters and error, it should output it into its log instead of closing.

Alternatively the log file name could be appended with -failed.log to better recognize this scenario.

A general try/catch could work. Alternatively we can hook into the UnhandledException event of the runtime to be a bit more sure.

The exception should also be printed in the log itself.

Notes

Careful about exceptions that are coming from failed attempt at logging.

Want to work on this issue?

❤️ Amazing! Let us know in the comments bellow so that we can assign this issue to you. 🎉

No stress, though, feel free to ask for help with any clarifications or problems you may encounter along the way. We're here to help.

Contributor guide