grafana/k6 · error
executor ' ' doesn't support pause and resume operations…
Error message
%s executor '%s' doesn't support pause and resume operations after its start
What it means
SetPaused capability guard: after a test has started, only the externally-controlled executor supports pause/resume. Any other executor type in the scheduler causes SetPaused to reject the operation once execution is underway — it is not a bug, it's an unsupported-operation error.
Solutions
- Use the externally-controlled executor (execution: external via REST API) if mid-test pause/resume is required
- Pause before test start instead (k6 run --paused)
- Avoid pause/resume for other executor types after start
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at internal/execution/scheduler.go:588 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of grafana/k6@01ffac6f24 (2026-08-18).
Data as JSON: /api/errors/a811a2eca4e6033b.
Report an issue: GitHub.
Appendix: source
Thrown at internal/execution/scheduler.go:588
// IMPORTANT: Currently only the externally controlled executor can be paused
// and resumed multiple times in the middle of the test execution! Even then,
// "pausing" is a bit misleading, since k6 won't pause in the middle of the
// currently executing iterations. It will allow the currently in-progress
// iterations to finish, and it just won't start any new ones nor will it
// increment the value returned by GetCurrentTestRunDuration().
func (e *Scheduler) SetPaused(pause bool) error {
if !e.state.HasStarted() && e.state.IsPaused() {
if pause {
return fmt.Errorf("execution is already paused")
}
e.state.Test.Logger.Debug("Starting execution")
return e.state.Resume()
}
for _, exec := range e.executors {
pausableExecutor, ok := exec.(lib.PausableExecutor)
if !ok {
return fmt.Errorf(
"%s executor '%s' doesn't support pause and resume operations after its start",
exec.GetConfig().GetType(), exec.GetConfig().GetName(),
)
}
if err := pausableExecutor.SetPaused(pause); err != nil {
return err
}
}
if pause {
return e.state.Pause()
}
return e.state.Resume()
}
View on GitHub (pinned to 01ffac6f24)