tigrbl-runtime 0.4.5.dev6__py3-none-any.whl → 0.4.5.dev10__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.
@@ -91,7 +91,7 @@ class _PackedErrorEdgesMixin:
91
91
  )
92
92
  return None
93
93
 
94
- def _release(db: Any) -> None:
94
+ def _release(db: Any) -> asyncio.Task[Any] | None:
95
95
  close = getattr(db, "close", None)
96
96
  if not callable(close):
97
97
  return
@@ -103,9 +103,10 @@ class _PackedErrorEdgesMixin:
103
103
  except RuntimeError:
104
104
  asyncio.run(rv)
105
105
  else:
106
- loop.create_task(rv)
106
+ return loop.create_task(rv)
107
107
  except Exception:
108
- return
108
+ pass
109
+ return None
109
110
 
110
111
  def _acquire_from_provider(provider: Any) -> tuple[Any, Any]:
111
112
  db = provider.session()
@@ -308,7 +308,9 @@ class _PackedExecuteMixin:
308
308
  finally:
309
309
  if callable(release_db):
310
310
  try:
311
- release_db()
311
+ cleanup = release_db()
312
+ if inspect.isawaitable(cleanup):
313
+ await cleanup
312
314
  except Exception:
313
315
  pass
314
316
 
@@ -236,7 +236,7 @@ async def _invoke(
236
236
  if isinstance(temp, Mapping):
237
237
  release = temp.pop("__sys_db_release__", None)
238
238
  if callable(release):
239
- release()
239
+ await _maybe_await(release())
240
240
 
241
241
  if skip_egress:
242
242
  result_source = ctx.get("result")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tigrbl-runtime
3
- Version: 0.4.5.dev6
3
+ Version: 0.4.5.dev10
4
4
  Summary: Execution bridge for compiled Tigrbl kernel plans and narrow runtime context/carrier compatibility.
5
5
  License: Apache License
6
6
  Version 2.0, January 2004
@@ -226,10 +226,10 @@ Classifier: Topic :: Internet :: WWW/HTTP
226
226
  Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
227
227
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
228
228
  Requires-Dist: numba (>=0.61.2)
229
- Requires-Dist: tigrbl-atoms
230
- Requires-Dist: tigrbl-base
231
- Requires-Dist: tigrbl-core
232
- Requires-Dist: tigrbl-kernel
229
+ Requires-Dist: tigrbl-atoms (>=0.4.5.dev5)
230
+ Requires-Dist: tigrbl-base (>=0.4.5.dev6)
231
+ Requires-Dist: tigrbl-core (>=0.4.5.dev6)
232
+ Requires-Dist: tigrbl-kernel (>=0.4.5.dev5)
233
233
  Requires-Dist: tigrbl-typing
234
234
  Project-URL: Discord, https://discord.gg/K4YTAPapjR
235
235
  Project-URL: Homepage, https://github.com/tigrbl/tigrbl
@@ -27,8 +27,8 @@ tigrbl_runtime/executors/numba_packed.py,sha256=ICntbbFDO05NOuW6F2sU0pre0Z2ipiJr
27
27
  tigrbl_runtime/executors/packed/__init__.py,sha256=0rTrOfFv0hc6uZHyuFt1vXO-T_v8sRVXH1GdqMsGiSM,118
28
28
  tigrbl_runtime/executors/packed/_shared.py,sha256=ggCnzYUNotdVkKwf0sSlt_UW2jrT3nq4JW3-P-4PYz8,6203
29
29
  tigrbl_runtime/executors/packed/batch.py,sha256=UjgxpABAnT34yItOHlv-ndxd37DzsMlgeyJOiElWtN4,12514
30
- tigrbl_runtime/executors/packed/error_edges.py,sha256=iKgqeSAER17H3qhHaVyltpxJ3MU_hdAcE6PSijsrwlc,11928
31
- tigrbl_runtime/executors/packed/execute.py,sha256=_O4pyMIRXp4D3GuollEO-gLnuCerzJLJjSn7ZwVGB4A,15018
30
+ tigrbl_runtime/executors/packed/error_edges.py,sha256=dL3iaZKhuQOvN8mbJcWnXzRtpEoOU4_XMLg4v36nH5Y,11977
31
+ tigrbl_runtime/executors/packed/execute.py,sha256=mOd2ubNaJVbyug7iGQyKp_M9on9gk2P32dDdjucCIj8,15119
32
32
  tigrbl_runtime/executors/packed/executor.py,sha256=oaywnJ-smqcqhQbvSQukLy94-A7RE76Sfl15BXyW8MU,3314
33
33
  tigrbl_runtime/executors/packed/hot_access.py,sha256=2Xh0v79uHp_TqaqbkL918y6mEz6K0mpZPLCtTXy3eIw,7784
34
34
  tigrbl_runtime/executors/packed/hot_context.py,sha256=xDO70_-WvIv0LemBLXweoJ9scPfSMK9e1YybgFAcEZM,12470
@@ -40,7 +40,7 @@ tigrbl_runtime/executors/packed/route_select_websocket.py,sha256=XbVqPt0fX0sTGAd
40
40
  tigrbl_runtime/executors/packed/runner_resolve.py,sha256=R82Y9MBAlXDc3kKjGXeVOBtimmCprvKuOe8q8oX9NWA,15489
41
41
  tigrbl_runtime/executors/packed/segments.py,sha256=-smyIbjgr3RLK_spWEGxo1E-8gJALBTwD0diaIA1hkg,12881
42
42
  tigrbl_runtime/executors/phase.py,sha256=9HxJUbdh1-FLvhb6cGe3sOaz_Ej6xydDT9hUpVi2ERQ,1057
43
- tigrbl_runtime/executors/phase_runner.py,sha256=OshCk29OFn-5IMBgLO5_23zLHsewgk_tXOMAXgBZNrg,9856
43
+ tigrbl_runtime/executors/phase_runner.py,sha256=TogCSyNUAIUqNOgqeqNw9Ars847R3xAxiUbJOOxP_qU,9876
44
44
  tigrbl_runtime/executors/types.py,sha256=r4GsnCFXXvbi8XA2vVl8rP9hCsV0W3r_HyTnQq0DS04,1127
45
45
  tigrbl_runtime/lowering_services.py,sha256=1pasQDSPyVJCKRr1nGts68m0kMfJw6JG-5KLvuUq_iY,794
46
46
  tigrbl_runtime/runtime/__init__.py,sha256=oy7pj5NN8inWiXhkdU5htTxxqYcsbgkeEBRbRIIz_hc,652
@@ -53,8 +53,8 @@ tigrbl_runtime/runtime/response.py,sha256=SCJKN-hyjeVoKmlLdf_N7RkTyx_f6noCx-fSgL
53
53
  tigrbl_runtime/runtime/runtime.py,sha256=gCIuwJkj_DmPzVfXAIpp5-3hEilv_yfyYvLDjrcBF7E,3624
54
54
  tigrbl_runtime/runtime/system.py,sha256=5GWVYZscff1nUymCKJAEa7VYbqIeFfppV3seYyDxlvA,4301
55
55
  tigrbl_runtime/semantics.py,sha256=UwPeNdKXJ421XoXqL3oyko5gi9vNrXkBKwk5X9Ug2So,9972
56
- tigrbl_runtime-0.4.5.dev6.dist-info/METADATA,sha256=64oojbbKuiEfAjdwYjLYfn6kkWypEcYBUuqyHDrR85g,23657
57
- tigrbl_runtime-0.4.5.dev6.dist-info/WHEEL,sha256=L-WvLdSBvJWHXv5zrQxDvNRnIgoBzLUpcbuiw19KCuQ,88
58
- tigrbl_runtime-0.4.5.dev6.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
59
- tigrbl_runtime-0.4.5.dev6.dist-info/licenses/NOTICE,sha256=EvJMTshzsWz43LiK-DeN2ZuLtrP49cxvlrFlJ8F_buc,221
60
- tigrbl_runtime-0.4.5.dev6.dist-info/RECORD,,
56
+ tigrbl_runtime-0.4.5.dev10.dist-info/METADATA,sha256=zLgYdpybCsuyUHShbiHMfvKz-VmlDSgnnRTRcpcEO60,23718
57
+ tigrbl_runtime-0.4.5.dev10.dist-info/WHEEL,sha256=L-WvLdSBvJWHXv5zrQxDvNRnIgoBzLUpcbuiw19KCuQ,88
58
+ tigrbl_runtime-0.4.5.dev10.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
59
+ tigrbl_runtime-0.4.5.dev10.dist-info/licenses/NOTICE,sha256=EvJMTshzsWz43LiK-DeN2ZuLtrP49cxvlrFlJ8F_buc,221
60
+ tigrbl_runtime-0.4.5.dev10.dist-info/RECORD,,