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/get user timeout #665

Merged
merged 4 commits into from
Oct 1, 2024
Merged

Fix/get user timeout #665

merged 4 commits into from
Oct 1, 2024

Conversation

gcharest
Copy link
Contributor

@gcharest gcharest commented Oct 1, 2024

Summary | Résumé

Update the Google list groups with users to handle cases where an API time out error breaks the sync job.

Add a tolerate error flag to continue processing users (set to default False)

@gcharest gcharest requested a review from a team October 1, 2024 16:00
@gcharest gcharest self-assigned this Oct 1, 2024
@gcharest gcharest enabled auto-merge (squash) October 1, 2024 16:02
@gcharest gcharest disabled auto-merge October 1, 2024 16:06
Copy link
Contributor

@sylviamclaughlin sylviamclaughlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work! Nice that it will continue now if it can't get a group member

@gcharest gcharest merged commit f69c6a5 into main Oct 1, 2024
8 checks passed
@gcharest gcharest deleted the fix/get_user_timeout branch October 1, 2024 16:26
error_occurred = True
if not tolerate_errors:
break
if error_occurred and not tolerate_errors:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be continue when tolerate_errors instead of not tolerate_errors?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think you're correct... I'll double check my unit test!

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.

3 participants