Skip to content

Commit

Permalink
add consumer config with start time
Browse files Browse the repository at this point in the history
  • Loading branch information
cl0ete committed Oct 24, 2024
1 parent 3dff54f commit 1b6c7bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions waypoint/services/nats_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ async def _subscribe(

# Format the time in the required format
start_time = time_30_secs_ago.strftime("%Y-%m-%dT%H:%M:%S.%f")[:-3] + "Z"
config = ConsumerConfig(
deliver_policy=DeliverPolicy.BY_START_TIME,
opt_start_time=start_time,
)

return subscription

Expand Down

0 comments on commit 1b6c7bb

Please sign in to comment.