Skip to content

Commit

Permalink
fix: request disable retry
Browse files Browse the repository at this point in the history
Signed-off-by: Eray Ates <eray.ates@worldline.com>
  • Loading branch information
rytsh committed Aug 15, 2024
1 parent f03c0f9 commit dfd8477
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/flow/nodes/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ func (n *Request) Run(ctx context.Context, _ *sync.WaitGroup, reg *registry.Regi
}

rendered.addHeadersRaw = buf.String()
// }

var addHeaders map[string]interface{}
if err := yaml.Unmarshal([]byte(rendered.addHeadersRaw), &addHeaders); err != nil {
Expand Down Expand Up @@ -323,7 +322,7 @@ func (n *Request) Fetch(ctx context.Context, db *gorm.DB) error {
SkipVerify: n.skipVerify,
Log: n.log,
Retry: request.Retry{
Enabled: true,
Enabled: !n.retryDisabled,
EnabledStatusCodes: retryCodes,
DisabledStatusCodes: retryDeCodes,
},
Expand Down

0 comments on commit dfd8477

Please sign in to comment.