Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Cloud Task header used to retrieve retries #6

Open
alachaum opened this issue Apr 21, 2020 · 4 comments
Open

Change Cloud Task header used to retrieve retries #6

alachaum opened this issue Apr 21, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@alachaum
Copy link
Member

The X-CloudTasks-TaskExecutionCount header sent by Google Cloud Tasks and providing the number of retries outside of HTTP 503 (instance not reachable) is currently bugged and remains at 0 all the time.

Starting with 0.10.rc3 Cloudtasker uses the X-CloudTasks-TaskRetryCount header to detect the number of retries. This header includes HTTP 503 errors which means that if your application is down at some point, jobs will fail and these failures will be counted toward the maximum number of retries. A bug report has been raised with GCP to address this issue.

Once fixed we will revert to using X-CloudTasks-TaskExecutionCount to avoid counting HTTP 503 as job failures.

@alachaum alachaum added the bug Something isn't working label Apr 21, 2020
@alachaum
Copy link
Member Author

alachaum commented May 3, 2021

Need to double check if GCP has fixed this recently. If they have, I'll switch the header. If they haven't, I'll just close the issue.

The last news from my bug report was that the current behaviour was "intended". In other words they just discarded the issue despite bug reports from two differences sources.

@geoffreyd
Copy link

It seems that your linked issue (154532072) is no longer available on Google's issue tracker.
According to this issue, it seems a problem was acknowledged, and supposedly fixed. Hopefully that's the case.

@alachaum
Copy link
Member Author

Thanks for the heads up @geoffreyd ! I'll give it another try to verify they actually fixed it. And if that's the case well.... I'll change the header used to detect retry counts! 🎉

PS: it seems my original issue got cleaned up on their side.

@alachaum
Copy link
Member Author

It confirm that the X-Cloudtasks-Taskexecutioncount header is working properly. I'll change the header we use to detect the retry count in the next release.

Screenshot 2024-03-31 at 17 47 05

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants