فهرست منبع

[spark] Show errors happening at create sesssion

Romain Rigaux 10 سال پیش
والد
کامیت
e1f6bbc
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  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']