Skip to content

Commit 32f4cb2

Browse files
committed
[core] Publish correct state when tasks_<TRANSITION> is done
1 parent ac23091 commit 32f4cb2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/environment/environment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ func newEnvironment(userVars map[string]string, newId uid.ID) (env *Environment,
368368

369369
the.EventWriterWithTopic(topic.Environment).WriteEvent(&pb.Ev_EnvironmentEvent{
370370
EnvironmentId: env.id.String(),
371-
State: env.Sm.Current(),
371+
State: e.Dst, // exceptionally we take the destination state here instead of the current, because the tasks have transitioned
372372
RunNumber: env.currentRunNumber,
373373
Error: errorMsg,
374374
Message: "transition step finished",

0 commit comments

Comments
 (0)