summaryrefslogtreecommitdiff
path: root/pkg/events/pool_events.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/events/pool_events.go')
-rw-r--r--pkg/events/pool_events.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/events/pool_events.go b/pkg/events/pool_events.go
index 3925df56..c569a5a8 100644
--- a/pkg/events/pool_events.go
+++ b/pkg/events/pool_events.go
@@ -28,6 +28,9 @@ const (
// EventExecTTL triggered when worker spends too much time doing the task (max_execution_time).
EventExecTTL
+
+ // EventPoolRestart triggered when pool restart is needed
+ EventPoolRestart
)
type P int64
@@ -52,6 +55,8 @@ func (ev P) String() string {
return "EventIdleTTL"
case EventExecTTL:
return "EventExecTTL"
+ case EventPoolRestart:
+ return "EventPoolRestart"
}
return "Unknown event type"
}