fix(tasks): fix task cancellation process tree leak, emit cancelled events, and refine status badges styling
This commit is contained in:
@@ -304,6 +304,8 @@ func (h *ServerSchedulerHandler) OnTaskCompleted(req *executor.ExecutionRequest,
|
||||
eventType = constant.EventTaskFailed
|
||||
case constant.TaskStatusTimeout:
|
||||
eventType = constant.EventTaskTimeout
|
||||
case constant.TaskStatusCancelled:
|
||||
eventType = constant.EventTaskCancelled
|
||||
}
|
||||
if eventType != "" {
|
||||
eventbus.DefaultBus.Publish(eventbus.Event{
|
||||
|
||||
Reference in New Issue
Block a user