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

[MODLISTS-147] Add REFRESH_QUERY_TIMEOUT_MINUTES env variable to module descriptor #139

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bvsharp
Copy link
Collaborator

@bvsharp bvsharp commented Dec 16, 2024

Purpose

MODLISTS-147 (not the exact purpose of the ticket, but as I was investigating I noticed we didn't have this in the module descriptor)

Change id batch logging to debug to avoid cluttering logs.

Add extra condition to query that checks whether a user is exporting. Ignore exports > 2(?) hours old, since that likely indicates an export that got stuck IN_PROGRESS

@@ -32,7 +32,7 @@ public class DataBatchCallback implements BiConsumer<ListEntity, List<List<Strin

public void accept(ListEntity entity, List<List<String>> contentIds) {
UUID refreshId = entity.getInProgressRefreshId().orElseThrow(() -> new ListNotRefreshingException(entity, ListActions.REFRESH));
log.info("Received data batch for list {}, refreshId {}: {}", entity.getId(), refreshId, contentIds);
log.debug("Received data batch for list {}, refreshId {}: {}", entity.getId(), refreshId, contentIds);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was really cluttering the logs

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.

1 participant