summaryrefslogtreecommitdiff
path: root/pkg/events
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-02-02 19:30:00 +0300
committerGitHub <[email protected]>2021-02-02 19:30:00 +0300
commit20a1a5d2eb26090e0eef0e6772330ee2a52526fa (patch)
treec282e18c20029f60a798576cb4fe47d2762ffba0 /pkg/events
parent36f01dc035f42115fcfd3b77dc5df3098382cd9f (diff)
parent2bdf7fafa73cabf7cf63657a6b58f2a423ae0fcd (diff)
Merge pull request #522 from spiral/fix/named_loggerv2.0.0-beta.22
bug(logger): Incorrect parsing of nested log levels
Diffstat (limited to 'pkg/events')
-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"
}