Skip to content

Conversation

@eduardoboucas
Copy link
Member

When clients retry an operation, we would like to propagate the retry number to the API, so that it can adjust its behaviour accordingly.

To do this, this PR adds a X-Nf-Retry-Count header, which is empty on the first attempt, and contains 1 on the first retry, and so on.

Currently, we're adding the field to the uploadDeployFunction only.

Part of https://github.com/netlify/pod-compute/issues/140.

@eduardoboucas eduardoboucas added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Jul 12, 2022
@eduardoboucas eduardoboucas requested a review from a team as a code owner July 12, 2022 11:35
@netlify
Copy link

netlify bot commented Jul 12, 2022

Deploy Preview for open-api ready!

Name Link
🔨 Latest commit 5d7821e
🔍 Latest deploy log https://app.netlify.com/sites/open-api/deploys/62cd5c95745fa800087689ea
😎 Deploy Preview https://deploy-preview-385--open-api.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Contributor

@mraerino mraerino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does the JS client also need this?

@eduardoboucas
Copy link
Member Author

does the JS client also need this?

Yes 💯! I'll work on that next.

@eduardoboucas eduardoboucas merged commit 102dc5b into master Jul 14, 2022
@eduardoboucas eduardoboucas deleted the feat/retry-count branch July 14, 2022 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature code contributing to the implementation of a feature and/or user facing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants