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

Check on data staleness to prevent submitting outdated data #486

Merged
merged 2 commits into from
Apr 5, 2023

Conversation

martinkersner
Copy link
Member

@martinkersner martinkersner commented Apr 5, 2023

Description

This PR adds a check on data staleness to a Data Feed worker. If aggregated data are older than MAX_DATA_STALENESS (currently set to 5 seconds), then worker does not submit a job to reporter. The submission to heartbeat queue proceeds as usual.

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

Checklist before requesting a review

  • I have performed a self-review of my code.

Deployment

  • Should publish Docker image

@martinkersner martinkersner self-assigned this Apr 5, 2023
@martinkersner martinkersner marked this pull request as ready for review April 5, 2023 02:17
Copy link
Contributor

@bayram98 bayram98 left a comment

Choose a reason for hiding this comment

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

LGTM!

@martinkersner martinkersner merged commit dbf3c76 into master Apr 5, 2023
@martinkersner martinkersner deleted the i-448/feat/control-data-staleness branch April 5, 2023 03:07
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.

Set and control data staleness for aggregated data to avoid submitting outdated values
2 participants