mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
parent
7d88f80a9b
commit
a58adc862e
@ -711,7 +711,7 @@ class HiveEngineSpec(PrestoEngineSpec):
|
||||
)
|
||||
polled = cursor.poll()
|
||||
while polled.operationState in unfinished_states:
|
||||
query = session.query(type(query)).filter_by(id=query.id)
|
||||
query = session.query(type(query)).filter_by(id=query.id).one()
|
||||
if query.status == QueryStatus.STOPPED:
|
||||
cursor.cancel()
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user