Skip to content

Commit b19ef9a

Browse files
authored
fix(api): load capabilities on worker model load fallback (#5197)
1 parent 713e7d3 commit b19ef9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/api/workflow/process_requirements.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func processNodeJobRunRequirementsGetModel(ctx context.Context, db gorp.SqlExecu
156156

157157
// if there is no shared.infra model we will try to find one for exec groups, backward compatibility for existing workflow runs.
158158
if wm == nil {
159-
wms, err := workermodel.LoadAllByNameAndGroupIDs(ctx, db, modelName, execsGroupIDs)
159+
wms, err := workermodel.LoadAllByNameAndGroupIDs(ctx, db, modelName, execsGroupIDs, workermodel.LoadOptions.Default)
160160
if err != nil {
161161
return nil, err
162162
}

0 commit comments

Comments
 (0)