Skip to content

Spawn a task for github webhooks to get around timeout - #2562

Merged
Kobzol merged 1 commit into
rust-lang:mainfrom
JonathanBrouwer:github-timeout
Sep 1, 2026
Merged

Spawn a task for github webhooks to get around timeout#2562
Kobzol merged 1 commit into
rust-lang:mainfrom
JonathanBrouwer:github-timeout

Conversation

@JonathanBrouwer

@JonathanBrouwer JonathanBrouwer commented Sep 1, 2026

Copy link
Copy Markdown
Member

To fix the problem that happened here: rust-lang/rust#162117 (comment)

let authorized_users = match get_authorized_users().await {
Ok(authorized_users) => authorized_users,
Err(err) => {
main_client.post_comment(issue.number, err).await;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I decided to post this as a comment, but maybe just log::error! is better?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's good if we respond with something to the command, so this seems fine.

@Kobzol Kobzol left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks. I'll take a look at making the handler a bit faster.

@Kobzol
Kobzol added this pull request to the merge queue Sep 1, 2026
Merged via the queue into rust-lang:main with commit 2fbfb4b Sep 1, 2026
15 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.

2 participants