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 retry count mechanism and virus scan check to google drive transmission #205

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bseeger
Copy link
Collaborator

@bseeger bseeger commented Apr 10, 2024

@bseeger bseeger marked this pull request as draft April 10, 2024 21:24
@bseeger bseeger force-pushed the bseeger/google_drive_retry_and_virus_187339289 branch from bbaf55f to 32bfc76 Compare April 10, 2024 21:25
build.gradle Outdated
} else {
implementation "org.codeforamerica.platform:form-flow:${formFlowLibraryVersion}"
println "📚Using form flow library ${formFlowLibraryVersion}"
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think this change is temporary and I will reverse this once the FFL changes have been released.

if (!status.equals(TransmissionStatus.TRANSMITTING)) {
int retryCount = transmission.getRetryCount();
retryCount++;
transmission.setRetryCount(retryCount);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Question: if the retry count is == to the max, should we set status differently, or keep it as QUEUED? It will not get picked up again, but maybe the status should reflect this as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

How should we notify ourselves if an transmission fails to send after 5 tries? We should put in some code here that causes us to be alerted. Maybe an ERROR with a specific message and then a Datadog monitor for that message??? @stabai @spokenbird @analoo?

Copy link
Collaborator

Choose a reason for hiding this comment

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

It's easiest if there's a logging level that always triggers an alert. Do we have something like CRITICAL that I can set up to do that?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hmmm... no CRITICAL that I can see.

@bseeger bseeger force-pushed the bseeger/google_drive_retry_and_virus_187339289 branch 2 times, most recently from 0fdb164 to 65a6ff5 Compare April 29, 2024 13:24
@bseeger bseeger force-pushed the bseeger/google_drive_retry_and_virus_187339289 branch from 139d785 to 4e6e82b Compare May 3, 2024 14:38
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.

None yet

2 participants