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

Ability to replay messages between time frame with new or existing rules + routes #22

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

Conversation

shayonj
Copy link
Collaborator

@shayonj shayonj commented Oct 28, 2024

bin/pg_flo replay-worker
Error: required flag(s) "end-time", "group", "nats-url", "start-time" not set
Usage:
  pg_flo replay-worker [flags]

Flags:
      --end-time string         End time for replay (RFC3339 format)
      --group string            Group name for worker (env: PG_FLO_GROUP)
  -h, --help                    help for replay-worker
      --nats-url string         NATS server URL (env: PG_FLO_NATS_URL)
      --routing-config string   Path to routing configuration file (env: PG_FLO_ROUTING_CONFIG)
      --rules-config string     Path to rules configuration file (env: PG_FLO_RULES_CONFIG)
      --start-time string       Start time for replay (RFC3339 format)

Global Flags:
      --config string   config file (default is $HOME/.pg_flo.yaml)

required flag(s) "end-time", "group", "nats-url", "start-time" not set

This way, user can spin up a worker with timestamps to replay the messages using existing or new rules + routing.

OptStartTime: &w.startTime,
ReplayPolicy: nats.ReplayOriginalPolicy,
MaxDeliver: 1, // Only deliver once
AckWait: 30 * time.Second,
Copy link

@servusdei2018 servusdei2018 Nov 21, 2024

Choose a reason for hiding this comment

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

This should probably be a configurable option (AckWait)

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