Skip to content

I19.9 · Backfill helpers #180

Open
Open

Description

@adssib

Part of #171

Story

As the service that runs these plugins, I want to ask a source for every pair in a version range, so a range nobody has read yet (an older version a user is still on) is filled in without special code per plugin.

Subtasks

  • core: Pairs(versions, from, to) → the consecutive pairs in a range; Backfill(ctx, source, from, to) → reads each version once and extracts each pair in order
  • Respect each source's limits: one fetch at a time per host, a delay between fetches, stop on 429 and say where it stopped
  • Idempotent: re-running a range gives the same events (fingerprints)
  • Test kit: backfill a saved source with four versions in memory

Acceptance criteria

  • Backfilling a range twice gives the same events
  • A range that hits a rate limit stops cleanly and resumes from where it stopped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions