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

Limiting transmission batches to 25 #512

Merged
merged 3 commits into from
Jan 12, 2024
Merged

Limiting transmission batches to 25 #512

merged 3 commits into from
Jan 12, 2024

Conversation

sree-cfa
Copy link
Contributor

No description provided.

@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-512 January 11, 2024 21:20 Inactive
@sree-cfa sree-cfa marked this pull request as ready for review January 11, 2024 21:27
@sree-cfa sree-cfa added the ready for review This PR is ready for code-review label Jan 11, 2024

# Run every hour
# @hourly java -Dserver.port=9191 -jar /opt/la-doc-uploader/app.jar transferSubmissions
@hourly java -Dserver.port=9191 -jar /opt/form-flow-starter-app/app.jar transferSubmissions
Copy link
Contributor

Choose a reason for hiding this comment

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

@sree-cfa - curious: why is this referencing the form-flow starter app instead of the la-doc-uploader?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is just the path we've been using in the Dockerfile - the "MKDIR" part


queuedSubmissions = queuedSubmissions.stream()
.filter(submission -> (submission.getSubmittedAt().isBefore(submittedAtCutoff))).toList();
log.info("Excluding %s submitted within last 2 hours".formatted(queuedSubmissions.size()));
Copy link
Contributor

Choose a reason for hiding this comment

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

For this log wouldn't queued submissions size be the number of applications that are in the window where they should be sent (as they are older than 2 hours ago?).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh yeah youre right

@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-512 January 12, 2024 19:56 Inactive
@sree-cfa sree-cfa temporarily deployed to test-la-doc-uploader-pr-512 January 12, 2024 20:51 Inactive
@sree-cfa sree-cfa merged commit b5960fd into main Jan 12, 2024
5 checks passed
@sree-cfa sree-cfa deleted the batch-limit branch January 12, 2024 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review This PR is ready for code-review
Projects
None yet
3 participants