summaryrefslogtreecommitdiff
path: root/pkg/events/pool_events.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-02-02 19:17:03 +0300
committerValery Piashchynski <[email protected]>2021-02-02 19:17:03 +0300
commit2bdf7fafa73cabf7cf63657a6b58f2a423ae0fcd (patch)
treefe5efc14a18f78218816a2bc7a2e19ee95642714 /pkg/events/pool_events.go
parent68becf8c58daec426f94513cf444061c199194d7 (diff)
Move worker states out of internal
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"
}