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

Fix cargo milestoning timeout. #1819

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented Jun 2, 2024

This fixes an issue where not all cargo PRs were getting milestoned.

The process of milestoning all the cargo PRs can take more than 10 seconds. This was causing the thread to get cancelled due to the webhook timeout.

This fixes the problem by spawning a background task to handle the milestoning process.

This fixes an issue where not all cargo PRs were getting milestoned.

The process of milestoning all the cargo PRs can take more than 10
seconds. This was causing the thread to get cancelled due to the webhook
timeout.

This fixes the problem by spawning a background task to handle the
milestoning process.
@apiraino
Copy link
Contributor

just curious: do we know why adding a milestone takes long? By looking at #1751 I wonder if adding a milestone is more a "cronjob-like" task or it needs to be triggered manually on some other event.

@ehuss
Copy link
Contributor Author

ehuss commented Jun 12, 2024

It needs to hit the set_milestone endpoint possibly a few dozen times. That endpoint seems fairly slow.

@ehuss ehuss merged commit d2ac789 into rust-lang:master Jun 17, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants