Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shangyian committed Dec 12, 2023
1 parent 0d8b6e6 commit 0646436
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions datajunction-server/datajunction_server/api/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -953,9 +953,11 @@ async def query_event_stream( # pylint: disable=too-many-arguments
break

# Check the current state of the query
query_next = query_service_client.get_query(query_id=query_id) # type: ignore
if query_next.state in END_JOB_STATES:
_logger.info(
query_next = query_service_client.get_query( # type: ignore # pragma: no cover
query_id=query_id,
)
if query_next.state in END_JOB_STATES: # pragma: no cover
_logger.info( # pragma: no cover
"query end state detected (%s), sending final event to the client",
query_next.state,
)
Expand Down

0 comments on commit 0646436

Please sign in to comment.