dqlmagic 1.2.1__tar.gz → 1.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dqlmagic-1.2.1 → dqlmagic-1.2.3}/PKG-INFO +1 -1
- {dqlmagic-1.2.1 → dqlmagic-1.2.3}/dqlmagic/__init__.py +1 -1
- {dqlmagic-1.2.1 → dqlmagic-1.2.3}/dqlmagic/dqlmagic.py +9 -1
- {dqlmagic-1.2.1 → dqlmagic-1.2.3}/dqlmagic.egg-info/PKG-INFO +1 -1
- {dqlmagic-1.2.1 → dqlmagic-1.2.3}/dqlmagic.egg-info/SOURCES.txt +0 -0
- {dqlmagic-1.2.1 → dqlmagic-1.2.3}/dqlmagic.egg-info/dependency_links.txt +0 -0
- {dqlmagic-1.2.1 → dqlmagic-1.2.3}/dqlmagic.egg-info/requires.txt +0 -0
- {dqlmagic-1.2.1 → dqlmagic-1.2.3}/dqlmagic.egg-info/top_level.txt +0 -0
- {dqlmagic-1.2.1 → dqlmagic-1.2.3}/dqlmagic.egg-info/zip-safe +0 -0
- {dqlmagic-1.2.1 → dqlmagic-1.2.3}/pyproject.toml +0 -0
- {dqlmagic-1.2.1 → dqlmagic-1.2.3}/readme.md +0 -0
- {dqlmagic-1.2.1 → dqlmagic-1.2.3}/setup.cfg +0 -0
- {dqlmagic-1.2.1 → dqlmagic-1.2.3}/setup.py +0 -0
|
@@ -182,6 +182,7 @@ class DQLmagic(Magics):
|
|
|
182
182
|
|
|
183
183
|
polling_interval = 1
|
|
184
184
|
|
|
185
|
+
inc = 0
|
|
185
186
|
while True:
|
|
186
187
|
statusResponse = requests.get(self.grail_apiurl+"query:poll", headers=headers, params=statusQueryParams)
|
|
187
188
|
|
|
@@ -189,9 +190,16 @@ class DQLmagic(Magics):
|
|
|
189
190
|
resJson = statusResponse.json()
|
|
190
191
|
status_update = resJson["state"]
|
|
191
192
|
if status_update == "SUCCEEDED":
|
|
193
|
+
print ("Query finished!", end="\r")
|
|
192
194
|
return statusResponse.text
|
|
193
195
|
else:
|
|
194
|
-
|
|
196
|
+
if resJson.get("progress"):
|
|
197
|
+
print ("Query in progress.. "+str(resJson["progress"])+"%", end="\r")
|
|
198
|
+
else:
|
|
199
|
+
spinner = "|" if inc%4==1 else "/" if inc%4==2 else "-" if inc%4==3 else "\\"
|
|
200
|
+
print ("Query in progress.. "+spinner, end="\r")
|
|
201
|
+
inc+=1
|
|
202
|
+
|
|
195
203
|
time.sleep(polling_interval)
|
|
196
204
|
else:
|
|
197
205
|
return '{"result":{"records":[{"ERROR":"Failed to poll query result ('+str(statusResponse.status_code)+')"}]}}'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|