Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: FIR-42244 airflow allow passing query timeout #44

Merged
merged 5 commits into from
Jan 14, 2025

Conversation

stepansergeevitch
Copy link
Collaborator

Added ability to pass timeout to firebolt operator and hook

@stepansergeevitch stepansergeevitch self-assigned this Jan 13, 2025
@stepansergeevitch stepansergeevitch requested a review from a team as a code owner January 13, 2025 15:08
firebolt_provider/hooks/firebolt.py Show resolved Hide resolved
@@ -137,6 +143,8 @@ def __init__(
self.firebolt_conn_id = firebolt_conn_id
self.engine_name = engine_name
self.database = None
self.query_timeout = None
self.fail_on_query_timeout = False
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be True by default?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it doesn't matter since we won't support engine start/stop timeout here so it will not be accounted for. I can set it to true

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's set it to true just to avoid confusion, users might see it and have questions why can't they fail if something goes wrong. If there's any timeout behind the scenes (e.g. network disconnect or something) we'll propagate it.

@stepansergeevitch stepansergeevitch changed the title Fir 42244 airflow allow passing query timeout feat: Fir 42244 airflow allow passing query timeout Jan 14, 2025
Copy link
Collaborator

@ptiurin ptiurin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise lgtm

@stepansergeevitch stepansergeevitch changed the title feat: Fir 42244 airflow allow passing query timeout feat: FIR-42244 airflow allow passing query timeout Jan 14, 2025
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@stepansergeevitch stepansergeevitch merged commit 03c6682 into main Jan 14, 2025
5 of 6 checks passed
@stepansergeevitch stepansergeevitch deleted the FIR-42244-airflow-allow-passing-query-timeout branch January 14, 2025 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants