-
Notifications
You must be signed in to change notification settings - Fork 314
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
Distinguish initial alarm invocations from retries. #1673
Conversation
3749029
to
8b888e3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code does what it says, but what's the purpose? What's this value going to be used for?
And is there a reason for choosing a bool over a count of the number of past attempts? |
Hi 👋, With my somewhat limited c++ knowledge, I couldn't find any references to the js invocation of the alarm handler - this would be useful to have exposed to the handler for observability purposes. Is that something that could be added perhaps? It's the user code throwing that causes a retry anyways, so in theory it could be tracked by user code (try/catch, store and rethrow), but a native counter would be more reliable. |
We'll still record each and every invocation internally, I can make it as a counter if you think it's best. Then we would have something like:
Instead of
|
c0a10ef
to
79fdf2b
Compare
PR Updated:
|
@DaniFoldi the |
eb7d65f
to
966ecdc
Compare
5ba2b7f
to
0aed909
Compare
0aed909
to
7014c32
Compare
This PR adds a new
runAlarm
parameter to keep track of alarm invocation retries.