Skip to content

Commit

Permalink
fix(eap): Set a max execution time for queries (#6925)
Browse files Browse the repository at this point in the history
This will return an error after 30s of executing the query.
  • Loading branch information
phacops authored Mar 3, 2025
1 parent 61f1dfe commit 5e5e48b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ query_processors:
max_rows_to_group_by: 1000000
group_by_overflow_mode: any
max_parallel_replicas: 3
max_execution_time: 30

mandatory_condition_checkers:
- condition: OrgIdEnforcer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ query_processors:
max_rows_to_group_by: 1000000
group_by_overflow_mode: any
max_parallel_replicas: 3
max_execution_time: 30

mandatory_condition_checkers:
- condition: OrgIdEnforcer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ query_processors:
args:
columns: [trace_id]
- processor: TupleUnaliaser
- processor: ClickhouseSettingsOverride
args:
settings:
max_execution_time: 30

mandatory_condition_checkers:
- condition: OrgIdEnforcer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ query_processors:
args:
columns: [trace_id]
- processor: TupleUnaliaser
- processor: ClickhouseSettingsOverride
args:
settings:
max_execution_time: 30

mandatory_condition_checkers:
- condition: OrgIdEnforcer
Expand Down

0 comments on commit 5e5e48b

Please sign in to comment.