sourcegraph/internal/goroutine
Erik Seliger a3ac809415
goroutine: Don't silently stop after panic (#57675)
If the handler function of a periodic goroutine panics, the handler silently dies. I don't see a panic error log, and it is never invoked again.

After discussing this on Slack, we concluded that periodic routines are most often part of a background job and that they shouldn't take down entire services when a single component misbehaves. Instead we treat them as an error in that component, which will surface in logs and the background jobs UI.

See https://sourcegraph.slack.com/archives/C02UC4WUX1Q/p1696960510011339 for the discussion to go with this behavior.
2023-10-19 20:57:27 +02:00
..
recorder ci: re-enable race detection (#52776) 2023-06-05 20:41:47 +02:00
background_test.go goroutine: Make monitoring background routines context-aware (#15171) 2020-10-30 17:38:49 -05:00
background.go goroutine: inline StartableRoutine into BackgroundRoutine (#48117) 2023-02-27 07:38:47 +00:00
BUILD.bazel goroutine/periodic: avoid double-logging errors (#54874) 2023-07-12 21:21:00 +00:00
CODENOTIFY codenotify: dr. fritz is kil (#57313) 2023-10-03 16:19:55 +00:00
example_test.go goroutine: Refactor constructors for periodic goroutines (#52806) 2023-06-01 17:44:38 -05:00
goroutine_test.go Add notifications when sourcegraph.com licenses are close to expiring… (#10362) 2020-06-06 14:41:35 -07:00
goroutine.go internal: Add additional goroutine utilities (#13260) 2020-08-24 08:24:19 -05:00
mocks_test.go chore: Update go-mockgen (#44305) 2022-11-11 19:24:00 +00:00
periodic_test.go goroutine: Don't silently stop after panic (#57675) 2023-10-19 20:57:27 +02:00
periodic.go goroutine: Don't silently stop after panic (#57675) 2023-10-19 20:57:27 +02:00