Skip to content

Commit

Permalink
fix: Make batch exports jitter more than 1 min (#27535)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias authored Jan 15, 2025
1 parent dba8839 commit 6de4d02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posthog/batch_exports/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ def sync_batch_export(batch_export: BatchExport, created: bool):
start_at=batch_export.start_at,
end_at=batch_export.end_at,
intervals=[ScheduleIntervalSpec(every=batch_export.interval_time_delta)],
jitter=min(dt.timedelta(minutes=1), (batch_export.interval_time_delta / 6)),
jitter=max(dt.timedelta(minutes=1), (batch_export.interval_time_delta / 6)),
time_zone_name=batch_export.team.timezone,
),
state=state,
Expand Down

0 comments on commit 6de4d02

Please sign in to comment.