summaryrefslogtreecommitdiff
path: root/events/events.go
diff options
context:
space:
mode:
Diffstat (limited to 'events/events.go')
-rw-r--r--events/events.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/events/events.go b/events/events.go
index 0d6483e3..42519637 100644
--- a/events/events.go
+++ b/events/events.go
@@ -25,6 +25,8 @@ const (
EventWorkerStderr
// EventWorkerWaitExit is the worker exit event
EventWorkerWaitExit
+ // EventWorkerStopped triggered when worker gracefully stopped
+ EventWorkerStopped
)
func (et EventType) String() string {
@@ -51,7 +53,8 @@ func (et EventType) String() string {
return "EventWorkerStderr"
case EventWorkerWaitExit:
return "EventWorkerWaitExit"
-
+ case EventWorkerStopped:
+ return "EventWorkerStopped"
default:
return "UnknownEventType"
}