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

Avoid reprocessing data in backfill-index #2280

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JasonPowr
Copy link

Issue: #2279

Summary

Motivation

This pr helps to solve the issue of reprocessing already indexed data during repeated runs of the backfill-index job by adding a --enable-redis-index-resume flag to backfill-index. When enabled, backfill-index saves the last processed index in Redis and resumes from it in subsequent runs, processing only new entries.

Release Note

Added a --enable-redis-index-resume flag to backfill-index, enabling jobs to resume from the last processed index and process only new entries for improved efficiency.

Documentation

@JasonPowr JasonPowr requested a review from a team as a code owner November 20, 2024 15:32
@JasonPowr JasonPowr force-pushed the set-up-index-tracking-for-backfill-index branch from ca1c83e to 6e46469 Compare November 20, 2024 15:35
@JasonPowr JasonPowr changed the title set-up-index-tracking-for-backfill-index Avoid reprocessing data in backfill-index Nov 20, 2024
Copy link
Contributor

@haydentherapper haydentherapper left a comment

Choose a reason for hiding this comment

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

Can you use --start?

@JasonPowr
Copy link
Author

Can you use --start?

Hi @haydentherapper, normally yes, however we tend to run the backfill-index on a schedule e.g a cronjob and keeping '--start' update to date in this context tends to be awkward, we either have to manually do it or store the value for '--start' in an awkward way which could be overwritten or modified.

@JasonPowr
Copy link
Author

@haydentherapper When you get a chance can I get a review on this :), thanks

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.

2 participants