cornflow 2.0.0a19__py3-none-any.whl → 2.0.0a20__py3-none-any.whl

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.
@@ -175,9 +175,11 @@ class ExecutionEndpoint(BaseMetaResource):
175
175
  f"{AIRFLOW_ERROR_MSG} {err}"
176
176
  )
177
177
  continue
178
-
179
- data = response.json()
180
- state = self.orch_to_state_map.get(data["state"], EXEC_STATE_UNKNOWN)
178
+ if self.orch_type == DATABRICKS_BACKEND:
179
+ state = self.orch_to_state_map.get(response, EXEC_STATE_UNKNOWN)
180
+ else:
181
+ data = response.json()
182
+ state = self.orch_to_state_map.get(data["state"], EXEC_STATE_UNKNOWN)
181
183
  execution.update_state(state)
182
184
 
183
185
  return executions
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cornflow
3
- Version: 2.0.0a19
3
+ Version: 2.0.0a20
4
4
  Summary: cornflow is an open source multi-solver optimization server with a REST API built using flask.
5
5
  Home-page: https://github.com/baobabsoluciones/cornflow
6
6
  Author: baobab soluciones
@@ -14,7 +14,7 @@ Requires-Dist: alembic==1.9.2
14
14
  Requires-Dist: apispec<=6.3.0
15
15
  Requires-Dist: cachetools==5.3.3
16
16
  Requires-Dist: click<=8.1.7
17
- Requires-Dist: cornflow-client==2.0.0a19
17
+ Requires-Dist: cornflow-client==2.0.0a20
18
18
  Requires-Dist: cryptography<=44.0.1
19
19
  Requires-Dist: databricks-sdk==0.29.0
20
20
  Requires-Dist: disposable-email-domains>=0.0.86
@@ -46,7 +46,7 @@ cornflow/endpoints/case.py,sha256=7mopDXp8RJzOcEvokvTGhT5YYGl2gZlhKry5K8DNya4,18
46
46
  cornflow/endpoints/dag.py,sha256=nPBPQVxGzz7BrBFM_w-I2GYNW0wuhQte5lqnAeC6Szg,10092
47
47
  cornflow/endpoints/data_check.py,sha256=rSq_AxEF7mCArIkRkhtkUIO5ZRb85j6Np3eFOEM0Kag,13588
48
48
  cornflow/endpoints/example_data.py,sha256=OgTlUCcI5SiofaWvhMQ2ivVLQJxBVvekfToFJxEpsqo,4429
49
- cornflow/endpoints/execution.py,sha256=CjnzXYJtVzksX4Ko7p1FwwIwE12JdBiDGQpz5i3cGlo,37314
49
+ cornflow/endpoints/execution.py,sha256=Cq10cX48ANgFyDzw67RXKQ6r6rLUecbuDdpdfRc7p5s,37473
50
50
  cornflow/endpoints/health.py,sha256=xdFwPEg1dJ5xOdFA0f5HiHV0HHWEq6pSWdEVjEx2ZIA,2538
51
51
  cornflow/endpoints/instance.py,sha256=3iy0NngmR6tSb7FcaWNq53VmNpl0JZ-voCtnUg9uyzc,12743
52
52
  cornflow/endpoints/licenses.py,sha256=82hHWGYvVIiyw9mlwGtMwJMDJ-ShHOi9rvuM6KvfE4U,873
@@ -173,8 +173,8 @@ cornflow/tests/unit/test_tables.py,sha256=SW_K8LRLwR1nB0uH8CPQCjeN8Gei-TasAgkOin
173
173
  cornflow/tests/unit/test_token.py,sha256=PZ11b46UCQpCESsRiAPhpgWkGAsAwKCVNxVQai_kxXM,4199
174
174
  cornflow/tests/unit/test_users.py,sha256=N5tcF5nSncD0F_ZlBxGuS87p6kNS4hUzRLr3_AcnK-o,22802
175
175
  cornflow/tests/unit/tools.py,sha256=5LuIWqQ4dvnnWn1NiOtDJstRmwGIFRFy7GBFOdnqFEU,3752
176
- cornflow-2.0.0a19.dist-info/METADATA,sha256=mfRUrpOyl6Bcvj6_wW9zViygEvoYgjnGgmoNMJO0Ccg,9571
177
- cornflow-2.0.0a19.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
178
- cornflow-2.0.0a19.dist-info/entry_points.txt,sha256=q9cPKAFBsmHkERCqQ2JcOTM-tVBLHTl-DGxwCXowAWM,46
179
- cornflow-2.0.0a19.dist-info/top_level.txt,sha256=Qj9kLFJW1PLb-ZV2s_aCkQ-Wi5W6KC6fFR-LTBrx-rU,24
180
- cornflow-2.0.0a19.dist-info/RECORD,,
176
+ cornflow-2.0.0a20.dist-info/METADATA,sha256=VO2DvgI3YgeVLuTjaPXYXoJ21htp__Zje33IqIt-pCY,9571
177
+ cornflow-2.0.0a20.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
178
+ cornflow-2.0.0a20.dist-info/entry_points.txt,sha256=q9cPKAFBsmHkERCqQ2JcOTM-tVBLHTl-DGxwCXowAWM,46
179
+ cornflow-2.0.0a20.dist-info/top_level.txt,sha256=Qj9kLFJW1PLb-ZV2s_aCkQ-Wi5W6KC6fFR-LTBrx-rU,24
180
+ cornflow-2.0.0a20.dist-info/RECORD,,