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: add 30s timeout to context used to execute operations onchain #132

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

gustavogama-cll
Copy link
Contributor

Previously, when executing an operation, the timelock-worker called bind.WaitMinted with a context without an associated timeout. This meant that when there was a problem with the RPC or the network itself, the executer goroutine would get stuck waiting indefinitely for the call to return. And because all operations are called sequentially, the timelock effectively stopped working.

With the added timeout, the context aborts the network call and the operation fails. The internal logic of the scheduler will take care of retrying a few minutes later.

Previously, when executing an operation, the timelock-worker called
`bind.WaitMinted` with a context without an associated timeout. This
meant that when there was a problem with the RPC or the network itself,
the executer goroutine would get stuck waiting indefinitely for the call
to return. And because all operations are called sequentially, the
timelock effectively stopped working.

With the added timeout, the context aborts the network call and the
operation fails. The internal logic of the scheduler will take care of
retrying a few minutes later.
@gustavogama-cll gustavogama-cll marked this pull request as ready for review February 1, 2025 05:37
@gustavogama-cll gustavogama-cll requested a review from a team as a code owner February 1, 2025 05:37
@gustavogama-cll gustavogama-cll added this pull request to the merge queue Feb 4, 2025
Merged via the queue into develop with commit 895c0e4 Feb 4, 2025
5 checks passed
@gustavogama-cll gustavogama-cll deleted the fix-add-timeout-to-context-waitmined branch February 4, 2025 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants