Skip to content

Commit

Permalink
[core] Set state to DONE in last autoEnv event - stopgap until Kafka …
Browse files Browse the repository at this point in the history
…switch
  • Loading branch information
teo committed Jun 7, 2024
1 parent 3dfd8aa commit da4bffc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/environment/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ func (envs *Manager) CreateAutoEnvironment(workflowPath string, userVars map[str
Infof("auto-environment failed at %s, tasks were cleaned up", op)
log.WithField("partition", env.Id().String()).Info("environment teardown complete")

env.sendEnvironmentEvent(&event.EnvironmentEvent{Message: "environment teardown complete", EnvironmentID: env.Id().String()})
env.sendEnvironmentEvent(&event.EnvironmentEvent{Message: "environment teardown complete", State: "DONE", EnvironmentID: env.Id().String()})
}

if err != nil {
Expand Down Expand Up @@ -1277,7 +1277,7 @@ func (envs *Manager) CreateAutoEnvironment(workflowPath string, userVars map[str
return
}

env.sendEnvironmentEvent(&event.EnvironmentEvent{Message: "environment teardown complete", EnvironmentID: env.Id().String()})
env.sendEnvironmentEvent(&event.EnvironmentEvent{Message: "environment teardown complete", State: "DONE", EnvironmentID: env.Id().String()})
return
case "ERROR":
fallthrough
Expand Down

0 comments on commit da4bffc

Please sign in to comment.