diff --git a/engine/api/workflow/process_requirements.go b/engine/api/workflow/process_requirements.go index c1899dbeb3..873e9af581 100644 --- a/engine/api/workflow/process_requirements.go +++ b/engine/api/workflow/process_requirements.go @@ -115,6 +115,9 @@ func processNodeJobRunRequirements(ctx context.Context, store cache.Store, db go sdk.AddRequirement(&requirements, v.ID, name, v.Type, value) } if wm != nil { + if wm.Disabled { + errm.Append(sdk.NewErrorFrom(sdk.ErrInvalidData, "worker model %s is disabled. Please update your requirement", wm.Name)) + } modelType = wm.Type // Check that the worker model has the binaries capabilitites