Explorar o código

[spark] Show errors happening at create sesssion

Romain Rigaux %!s(int64=10) %!d(string=hai) anos
pai
achega
e1f6bbc
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      apps/spark/src/spark/models.py

+ 3 - 0
apps/spark/src/spark/models.py

@@ -291,6 +291,9 @@ class SparkApi():
       count += 1
       time.sleep(1)
 
+    if status['state'] != 'idle':
+      raise QueryError('\n'.join(status['log']))
+
     return {
         'type': lang,
         'id': response['id']