-
Notifications
You must be signed in to change notification settings - Fork 193
added healthcheck to the trino python client making it able to procce… #575
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
base: master
Are you sure you want to change the base?
added healthcheck to the trino python client making it able to procce… #575
Conversation
…ss queries that will take more than 15 minutes
Instead of a heartbeat, I would opt for a callback with the status of the query so I can calculate the progress percentage every time the lastest status is received during the |
…/github.com/nadavtzaysler/trino-python-client into send-query-heartbeat-while-query-is-running
any updates on this? entirely blocking me implementing this client anywhere in my orgs stack |
|
||
def _heartbeat_loop(self): | ||
while all([not self._heartbeat_stop_event.is_set(), not self.finished, not self.cancelled, | ||
self._heartbeat_enabled]): | ||
if self._next_uri is None: | ||
break |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def _heartbeat_loop(self): | |
while all([not self._heartbeat_stop_event.is_set(), not self.finished, not self.cancelled, | |
self._heartbeat_enabled]): | |
if self._next_uri is None: | |
break | |
def _heartbeat_loop(self): | |
while all([not self._heartbeat_stop_event.is_set(), self.running, | |
self._heartbeat_enabled]): | |
if self._next_uri is None: | |
break |
legacy_primitive_types: bool = False, | ||
fetch_mode: Literal["mapped", "segments"] = "mapped" | ||
fetch_mode: Literal["mapped", "segments"] = "mapped", | ||
heartbeat_interval: float = 60.0, # seconds |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: this could be a timedelta objector imo better to just name it heartbeat_interval_seconds
Description
changed the python client to send heartbeats to the api in order to check if the sent query is still running
solves the issue #554
( x) This is not user-visible or docs only and no release notes are required.