Skip to content

Commit

Permalink
[core] Publish correct state when tasks_<TRANSITION> is done
Browse files Browse the repository at this point in the history
  • Loading branch information
teo committed Jul 9, 2024
1 parent ac23091 commit 32f4cb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/environment/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ func newEnvironment(userVars map[string]string, newId uid.ID) (env *Environment,

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

0 comments on commit 32f4cb2

Please sign in to comment.