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

Add a timeout message #809

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

AlexKnauth
Copy link
Contributor

To distinguish between errors where an auto-splitter update took too long, from other errors, such as panics, running out of stack space, etc.

@AlexKnauth
Copy link
Contributor Author

When testing with an auto-splitter that loops forever printing looping without calling next_tick().await, the logs look like this:

[2024-05-31 20:08:11][Auto Splitter][INFO] looping
[2024-05-31 20:08:11][Auto Splitter][INFO] looping
[2024-05-31 20:08:11][Auto Splitter][INFO] looping
[2024-05-31 20:08:11][Auto Splitter][ERROR] timeout, no update in 5 seconds
[2024-05-31 20:08:11][Auto Splitter][INFO] looping
[2024-05-31 20:08:11][Auto Splitter][ERROR] Unloaded, because the script trapped: error while executing at wasm backtrace:
    0:  0xb6f - <unknown>!<wasm function 17>
    1: 0x79c9 - <unknown>!<wasm function 106>

Caused by:
    wasm trap: interrupt

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.

1 participant