Merge pull request #6518 from egernst/ctr-stress-exec-fixup

containerd-stress: start task ctr before starting execs
This commit is contained in:
Michael Crosby 2022-02-07 11:47:53 -05:00 committed by GitHub
commit 2a588a619e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,6 +63,12 @@ func (w *execWorker) exec(ctx, tctx context.Context) {
logrus.WithError(err).Error("wait exec container's task") logrus.WithError(err).Error("wait exec container's task")
return return
} }
if err := task.Start(ctx); err != nil {
logrus.WithError(err).Error("exec container start failure")
return
}
spec, err := c.Spec(ctx) spec, err := c.Spec(ctx)
if err != nil { if err != nil {
logrus.WithError(err).Error("failed to get spec") logrus.WithError(err).Error("failed to get spec")