mirror of
https://github.com/Drop-OSS/droplet.git
synced 2026-08-26 22:11:13 -04:00
[GH-ISSUE #8] Exception/Panic Handling #6
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @useless-bit on GitHub (Aug 24, 2025).
Original GitHub issue: https://github.com/Drop-OSS/droplet/issues/8
I noticed during testing that an exception/panic in the Rust code (https://github.com/Drop-OSS/droplet/issues/7) will restart the whole application.
A panic while importing multiple big (> 100 GB) versions in parallel will cancel all running tasks that are active.
Maybe it is possible to handle these in the context of the request that triggers it instead of the entire application.
Spring Boot for example will catch the exception in the request context and returns a HTTP 500 error by default. Other requests or background tasks are not affected by it and will continue normally.
@DecDuck commented on GitHub (Aug 24, 2025):
We share an "handler object" between all of these for performance & caching reasons. I'm going to move this to droplet because a better solution would be to just not panic.
@DecDuck commented on GitHub (Aug 24, 2025):
Done in
0d01809fd0Exception/Panic Handlingto [GH-ISSUE #8] Exception/Panic Handling