{"record":{"id":"8d27b8ddbfc876db","repo":"grafana/k6","slug":"metrics-push-concurrency-must-be-a-positive-number","errorCode":null,"errorMessage":"metrics push concurrency must be a positive number but is %d","messagePattern":"metrics push concurrency must be a positive number but is (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/cmd/outputs_cloud.go","lineNumber":92,"sourceCode":"\t\t}\n\t}\n\n\tet, err := lib.NewExecutionTuple(\n\t\ttest.derivedConfig.ExecutionSegment,\n\t\ttest.derivedConfig.ExecutionSegmentSequence,\n\t)\n\tif err != nil {\n\t\treturn err\n\t}\n\texecutionPlan := test.derivedConfig.Scenarios.GetFullExecutionRequirements(et)\n\n\tduration, testEnds := lib.GetEndOffset(executionPlan)\n\tif !testEnds {\n\t\treturn errors.New(\"tests with unspecified duration are not allowed when outputting data to k6 cloud\")\n\t}\n\n\tif conf.MetricPushConcurrency.Int64 < 1 {\n\t\treturn fmt.Errorf(\"metrics push concurrency must be a positive number but is %d\",\n\t\t\tconf.MetricPushConcurrency.Int64)\n\t}\n\n\tif conf.MaxTimeSeriesInBatch.Int64 < 1 {\n\t\treturn fmt.Errorf(\"max allowed number of time series in a single batch must be a positive number but is %d\",\n\t\t\tconf.MaxTimeSeriesInBatch.Int64)\n\t}\n\n\tif conf.PushRefID.Valid && conf.PushRefID.String != \"\" {\n\t\tif err := applyExternalProvisioningCreds(gs, test, &conf); err != nil {\n\t\t\treturn err\n\t\t}\n\t\ttest.preInitState.RuntimeOptions.Env[testRunIDKey] = conf.PushRefID.String\n\t\tgs.Logger.Debug(\"using PushRefID, skipping CreateTestRun\")\n\t\t// Externally-provisioned run: the run id is the PushRefID.\n\t\tconfigureCloudLogPusher(gs, conf, conf.PushRefID.String)\n\t\treturn nil\n\t}","sourceCodeStart":74,"sourceCodeEnd":110,"githubUrl":"https://github.com/grafana/k6/blob/93accf6570dcd306ca5e99cc44c393ee3797761b/internal/cmd/outputs_cloud.go#L74-L110","documentation":"Error \"metrics push concurrency must be a positive number but is %d\" thrown in grafana/k6.","triggerScenarios":"Thrown at internal/cmd/outputs_cloud.go:92 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"93accf6570dcd306ca5e99cc44c393ee3797761b","analyzedAt":"2026-08-15T21:23:27.118Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}