-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Add retry loop with exponential backoff in dataloader as a form of in-application fault tolerance #2836
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 retry loop with exponential backoff in dataloader as a form of in-application fault tolerance #2836
Conversation
Signed-off-by: Deepak Narayanan <[email protected]>
323bdb9 to
84de5b2
Compare
jkamalu
left a comment
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.
Naming and scope of certain magic numbers and then some nits (which you can choose to ignore)
| bin_buffer_file.readinto(sequence) | ||
| return sequence | ||
|
|
||
| NUM_MAX_RETRIES = 3 |
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.
Why are these in all caps? Why don't we make these init args, or at least class args?
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.
Added, though I didn't thread the two new arguments through all the classes from the DatasetConfig class since I think that's overkill.
Signed-off-by: Deepak Narayanan <[email protected]>
e736d65 to
332a0e9
Compare
…-application fault tolerance (NVIDIA#2836) Signed-off-by: Deepak Narayanan <[email protected]>
No description provided.