tigrbl-runtime 0.4.5.dev6__tar.gz → 0.4.5.dev10__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.
Files changed (60) hide show
  1. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/PKG-INFO +5 -5
  2. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/pyproject.toml +5 -5
  3. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/executors/packed/error_edges.py +4 -3
  4. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/executors/packed/execute.py +3 -1
  5. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/executors/phase_runner.py +1 -1
  6. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/LICENSE +0 -0
  7. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/NOTICE +0 -0
  8. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/README.md +0 -0
  9. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/__init__.py +0 -0
  10. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/callbacks.py +0 -0
  11. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/channel/__init__.py +0 -0
  12. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/channel/_asgi_completion.py +0 -0
  13. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/channel/_asgi_context.py +0 -0
  14. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/channel/_asgi_jsonrpc.py +0 -0
  15. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/channel/_asgi_receive.py +0 -0
  16. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/channel/_asgi_scope.py +0 -0
  17. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/channel/_asgi_send.py +0 -0
  18. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/channel/_asgi_webtransport.py +0 -0
  19. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/channel/asgi.py +0 -0
  20. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/channel/capabilities.py +0 -0
  21. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/channel/websocket.py +0 -0
  22. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/config/__init__.py +0 -0
  23. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/config/constants.py +0 -0
  24. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/executors/__init__.py +0 -0
  25. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/executors/_invoke_support.py +0 -0
  26. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/executors/base.py +0 -0
  27. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/executors/ctx/__init__.py +0 -0
  28. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/executors/ctx/context.py +0 -0
  29. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/executors/ctx/hot.py +0 -0
  30. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/executors/ctx/hot_namespace_values.py +0 -0
  31. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/executors/ctx/hot_namespaces.py +0 -0
  32. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/executors/ctx/hot_state.py +0 -0
  33. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/executors/kernel_executor.py +0 -0
  34. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/executors/numba_packed.py +0 -0
  35. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/executors/packed/__init__.py +0 -0
  36. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/executors/packed/_shared.py +0 -0
  37. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/executors/packed/batch.py +0 -0
  38. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/executors/packed/executor.py +0 -0
  39. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/executors/packed/hot_access.py +0 -0
  40. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/executors/packed/hot_context.py +0 -0
  41. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/executors/packed/input_compile.py +0 -0
  42. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/executors/packed/input_extract.py +0 -0
  43. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/executors/packed/request_select.py +0 -0
  44. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/executors/packed/route_select.py +0 -0
  45. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/executors/packed/route_select_websocket.py +0 -0
  46. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/executors/packed/runner_resolve.py +0 -0
  47. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/executors/packed/segments.py +0 -0
  48. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/executors/phase.py +0 -0
  49. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/executors/types.py +0 -0
  50. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/lowering_services.py +0 -0
  51. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/runtime/__init__.py +0 -0
  52. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/runtime/_typing_aliases.py +0 -0
  53. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/runtime/base.py +0 -0
  54. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/runtime/channel.py +0 -0
  55. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/runtime/exceptions.py +0 -0
  56. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/runtime/hook_types.py +0 -0
  57. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/runtime/response.py +0 -0
  58. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/runtime/runtime.py +0 -0
  59. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/runtime/system.py +0 -0
  60. {tigrbl_runtime-0.4.5.dev6 → tigrbl_runtime-0.4.5.dev10}/tigrbl_runtime/semantics.py +0 -0
@@ -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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "tigrbl-runtime"
3
- version = "0.4.5.dev6"
3
+ version = "0.4.5.dev10"
4
4
  description = "Execution bridge for compiled Tigrbl kernel plans and narrow runtime context/carrier compatibility."
5
5
  readme = "README.md"
6
6
  license = { file = "LICENSE" }
@@ -38,10 +38,10 @@ authors = [{ name = "Jacob Stewart", email = "jacob@swarmauri.com" }]
38
38
 
39
39
  dependencies = [
40
40
  "tigrbl-typing",
41
- "tigrbl-kernel",
42
- "tigrbl-atoms",
43
- "tigrbl-base",
44
- "tigrbl-core",
41
+ "tigrbl-kernel>=0.4.5.dev5",
42
+ "tigrbl-atoms>=0.4.5.dev5",
43
+ "tigrbl-base>=0.4.5.dev6",
44
+ "tigrbl-core>=0.4.5.dev6",
45
45
  "numba>=0.61.2",
46
46
  ]
47
47
 
@@ -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")