Skip to content

Commit

Permalink
fix(engine): skip search model if we need to interpolate (#7174)
Browse files Browse the repository at this point in the history
  • Loading branch information
sguiheux authored Oct 15, 2024
1 parent eebd6d9 commit 99677b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/api/v2_workflow_run_craft.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ func (api *API) craftWorkflowRunV2(ctx context.Context, id string) error {
return stopRun(ctx, api.mustDB(), api.Cache, run, *u, *msg)
}

if !strings.HasPrefix(j.RunsOn.Model, "${{") {
if !strings.Contains(j.RunsOn.Model, "${{") {
completeName, msg, err := wref.checkWorkerModel(ctx, api.mustDB(), api.Cache, jobID, j.RunsOn.Model, j.Region, api.Config.Workflow.JobDefaultRegion)
if err != nil {
log.ErrorWithStackTrace(ctx, err)
Expand Down

0 comments on commit 99677b7

Please sign in to comment.