Skip to content

Commit da4bffc

Browse files
committed
[core] Set state to DONE in last autoEnv event - stopgap until Kafka switch
1 parent 3dfd8aa commit da4bffc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/environment/manager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,7 @@ func (envs *Manager) CreateAutoEnvironment(workflowPath string, userVars map[str
12181218
Infof("auto-environment failed at %s, tasks were cleaned up", op)
12191219
log.WithField("partition", env.Id().String()).Info("environment teardown complete")
12201220

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

12241224
if err != nil {
@@ -1277,7 +1277,7 @@ func (envs *Manager) CreateAutoEnvironment(workflowPath string, userVars map[str
12771277
return
12781278
}
12791279

1280-
env.sendEnvironmentEvent(&event.EnvironmentEvent{Message: "environment teardown complete", EnvironmentID: env.Id().String()})
1280+
env.sendEnvironmentEvent(&event.EnvironmentEvent{Message: "environment teardown complete", State: "DONE", EnvironmentID: env.Id().String()})
12811281
return
12821282
case "ERROR":
12831283
fallthrough

0 commit comments

Comments
 (0)