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

Feat/469 epoch indexer tracking #476

Merged
merged 2 commits into from
Sep 17, 2023
Merged

Conversation

pharr117
Copy link
Collaborator

This PR adds a few new features to epochs:

  1. A new flag on the Epoch model for tracking indexed values (set to a boolean of default false)
  2. Updating the epoch indexer to:
    • Run the epoch updater before indexing to find the newest epochs
    • Updated where clause when gathering epochs to index
      • Sorted by epoch number
      • Only ones that have indexed = false
    • The ability to set the End Epoch config value to -1 to find all epochs past the start config value
    • Setting indexed = true when the epoch is fully indexed

1. Model migration to add indexed bool to epochs
2. Update where clause to find unindexed epochs between start and end
3. Update db workflow for epoch indexing to set the indexed boolean to true
1. Check for new epochs at every run of the epoch indexer
2. Sorting on epochs to index
3. End epoch check for negative values to find all above start
@pharr117 pharr117 linked an issue Sep 16, 2023 that may be closed by this pull request
@pharr117 pharr117 merged commit 70f09bc into main Sep 17, 2023
3 checks passed
@pharr117 pharr117 deleted the feat/469-epoch-indexer-tracking branch September 17, 2023 18:03
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.

Improve updating, tracking and indexing in epoch indexer
2 participants