do not store WithTimeout context in step_start_instance
this one is quite gnarly. by storing and further re-using this context,
it will be canceled, because we cancel at the end of the function via
defer.
this caused all jobs to get a context canceled error right after the
instance was started.
@@ -59,9 +59,7 @@ func (s *stepStartInstance) Run(state multistep.StateBag) multistep.StepAction {
logger.WithField("boot_time", time.Since(startTime)).WithField("instance_id", instance.ID()).Info("started instance")
- ctx = context.FromInstanceID(ctx, instance.ID())
state.Put("instance", instance)
- state.Put("ctx", ctx)
return multistep.ActionContinue
}
