Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
fix: add ErrFunc to TCP monitor tasks to prevent indefinite hangs (#2460)
Maxa21bb7d697f9
diff --git a/apps/checker/pkg/scheduler/scheduler.go b/apps/checker/pkg/scheduler/scheduler.goindex 566276fe9..6a12834c8 100644--- a/apps/checker/pkg/scheduler/scheduler.go+++ b/apps/checker/pkg/scheduler/scheduler.go@@ -147,6 +147,9 @@ func (mm *MonitorManager) UpdateMonitors(ctx context.Context) {RunOnce: false,// StartAfter: time.Now().Add(5 * time.Millisecond),RunSingleInstance: true,+ ErrFunc: func(e error) {+ log.Printf("An error occurred when executing TCP task %s", e)+ },FuncWithTaskContext: func(ctx tasks.TaskContext) error {monitor := m