Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Automatically reattempt after internal errors #1424
Automatically reattempt after internal errors #1424
Changes from 39 commits
7bfaf74
e81d5bc
55cb6a9
8699d6b
0c37df7
f710326
0b39a4c
f92d82f
9350770
9f6696d
aee555a
008de3b
fc59ce2
ccda672
78ef834
cba5885
3ad51f2
3eb2f97
0839824
43085ff
8e4acc4
45a34f9
1ee3860
cb50c67
339f4ac
0921733
2e8bc83
53551e0
8111a9a
c5813c4
d3719b1
5df1807
757cc21
38f4176
f3629af
2ae2a7c
eed71f9
78a3d43
8bb7861
a2293b6
ab86276
56095a8
0e1b21c
d1c38de
cd8dffa
25a7578
6e1d4db
896edf1
d7b246e
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Handle potential null values for
run.lockedToVersion
to prevent runtime errors.In the line where
sdkVersion
is assigned,run.lockedToVersion
might benull
, which would cause a runtime error when accessingsdkVersion
. Since you check forrun.lockedToVersion
earlier, you might consider restructuring the code to ensurerun.lockedToVersion
is always defined before accessing its properties.Apply this diff to safely access
sdkVersion
:📝 Committable suggestion
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.
Ensure accurate delay validation to avoid misinterpreting zero delays.
Using
if (!delay)
may incorrectly handle cases wherecalculateNextRetryDelay
returns0
, which is a valid delay value representing an immediate retry. Since0
is falsy in JavaScript, this condition would treat a zero delay as if there is no delay value, possibly skipping retries that should occur immediately.Apply this diff to correct the condition:
📝 Committable suggestion