Skip to content

Create new cursor file if existing one is corrupt #2

@juni-b-queer

Description

@juni-b-queer

I've had a number of times where, for some reason, my jetstream container stops abruptly without saving the cursor file properly. So when it restarts, the cursor file exists, but it's empty/corrupt, so jetstream throws an error when trying to start its subscription. This prevents the container from coming back online without manual intervention (removing the cursor file).

I'll likely implement this is my fork, but it would be helpful if

  1. Every so often, the current valid cursor file is backed up to a separate file
  2. If jetstream starts and the cursor file is corrupt, attempt to use the latest backup or create a new one. Don't block jetstream from starting

I'm going to try to implement this, but I have very very little go experience.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions