File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -228,7 +228,10 @@ func (t *callRole) updateState(s task.State) {
228228 WithField ("partition" , t .GetEnvironmentId ().String ()).
229229 Tracef ("updated state to %s upon input state %s" , t .state .get ().String (), s .String ())
230230 t .SendEvent (& event.RoleEvent {Name : t .Name , State : t .state .get ().String (), RolePath : t .GetPath ()})
231- t .parent .updateState (s )
231+
232+ if t .Critical == true || s != task .ERROR {
233+ t .parent .updateState (s )
234+ }
232235}
233236
234237func (t * callRole ) copy () copyable {
Original file line number Diff line number Diff line change @@ -232,7 +232,10 @@ func (t *taskRole) updateState(s task.State) {
232232 WithField ("partition" , t .GetEnvironmentId ().String ()).
233233 Tracef ("updated state to %s upon input state %s" , t .state .get ().String (), s .String ())
234234 t .SendEvent (& event.RoleEvent {Name : t .Name , State : t .state .get ().String (), RolePath : t .GetPath ()})
235- t .parent .updateState (s )
235+
236+ if t .Critical == true || s != task .ERROR {
237+ t .parent .updateState (s )
238+ }
236239}
237240
238241func (t * taskRole ) SetTask (taskPtr * task.Task ) {
You can’t perform that action at this time.
0 commit comments