Skip to content

Commit

Permalink
fix: Set max_execution_time in mutations (#20654)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias authored Mar 1, 2024
1 parent a35edef commit b9f72b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions posthog/temporal/batch_exports/squash_person_overrides.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
WHERE
dictHas('{database}.{dictionary_name}', (team_id, distinct_id))
{in_team_ids}
SETTINGS
max_execution_time=0
"""

SQUASH_MUTATIONS_IN_PROGRESS_QUERY = """
Expand Down Expand Up @@ -97,6 +99,8 @@
DELETE WHERE
hasAll(joinGet('{database}.person_overrides_to_delete', 'partitions', team_id, distinct_id), %(partition_ids)s)
AND NOW() - _timestamp > %(grace_period)s
SETTINGS
max_execution_time=0
"""


Expand Down

0 comments on commit b9f72b3

Please sign in to comment.