Skip to content

Commit

Permalink
perf: Extend timeout for cohort calculation query (#23544)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkaemming authored Jul 9, 2024
1 parent c5a4bc6 commit c169de3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion posthog/models/cohort/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,10 @@ def recalculate_cohortpeople(
"team_id": cohort.team_id,
"new_version": pending_version,
},
settings={"optimize_on_insert": 0},
settings={
"max_execution_time": 240,
"optimize_on_insert": 0,
},
workload=Workload.OFFLINE,
)

Expand Down

0 comments on commit c169de3

Please sign in to comment.