Skip to content

Commit

Permalink
fix(backfill-batch-exports): Do not run partial ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias committed Oct 19, 2023
1 parent d60f409 commit c9f6658
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion posthog/temporal/workflows/backfill_batch_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,9 @@ def backfill_range(
current_end = current + step

if current_end > end_at:
current_end = end_at
# Do not yield a range that is less than step.
# Same as built-in range.
break

yield current, current_end

Expand Down

0 comments on commit c9f6658

Please sign in to comment.