optio-core 0.2.2__tar.gz → 0.2.3__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.
- {optio_core-0.2.2/src/optio_core.egg-info → optio_core-0.2.3}/PKG-INFO +1 -1
- {optio_core-0.2.2 → optio_core-0.2.3}/pyproject.toml +1 -1
- {optio_core-0.2.2 → optio_core-0.2.3}/src/optio_core/__init__.py +4 -3
- {optio_core-0.2.2 → optio_core-0.2.3}/src/optio_core/lifecycle.py +4 -2
- {optio_core-0.2.2 → optio_core-0.2.3/src/optio_core.egg-info}/PKG-INFO +1 -1
- {optio_core-0.2.2 → optio_core-0.2.3}/LICENSE +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/README.md +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/setup.cfg +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/src/optio_core/_engine_service.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/src/optio_core/_force_cancel.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/src/optio_core/_generated/optio_engine.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/src/optio_core/_launch_block_store.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/src/optio_core/context.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/src/optio_core/exceptions.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/src/optio_core/executor.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/src/optio_core/migrations/__init__.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/src/optio_core/migrations/m001_status_subdocument.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/src/optio_core/migrations/m002_backfill_child_metadata.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/src/optio_core/migrations/m003_backfill_has_saved_state.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/src/optio_core/migrations/m004_create_expire_at_ttl_index.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/src/optio_core/models.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/src/optio_core/progress_helpers.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/src/optio_core/scheduler.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/src/optio_core/state_machine.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/src/optio_core/store.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/src/optio_core.egg-info/SOURCES.txt +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/src/optio_core.egg-info/dependency_links.txt +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/src/optio_core.egg-info/requires.txt +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/src/optio_core.egg-info/top_level.txt +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_cancel_propagation.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_cancel_race_parent_overwrite.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_child_failure_cancel_distinction.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_child_failure_structured.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_child_progress.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_client_directed_events.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_context_blob.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_context_resume.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_deadline_cancel.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_deadline_cancel_launchguard.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_engine_service.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_engine_service_resolve.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_executor.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_group_cancel.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_group_cancel_purge.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_heartbeat.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_launch_guard.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_lifecycle_reconciliation.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_migration_m003.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_migration_m004.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_models.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_no_redis.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_outcomes.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_parallel.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_persistent_launch_blocks.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_progress_helpers.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_progress_throttle.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_resync.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_resync_cancel_stale.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_scheduler.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_state_machine.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_store.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_task_ttl.py +0 -0
- {optio_core-0.2.2 → optio_core-0.2.3}/tests/test_widget_primitives.py +0 -0
|
@@ -34,7 +34,7 @@ __all__ = [
|
|
|
34
34
|
"get_process", "list_processes",
|
|
35
35
|
"block_launches", "unblock_launches",
|
|
36
36
|
"group_cancel", "group_cancel_and_wait",
|
|
37
|
-
"rpc_server", "
|
|
37
|
+
"rpc_server", "mongo_store", "MongoStore",
|
|
38
38
|
]
|
|
39
39
|
|
|
40
40
|
|
|
@@ -47,7 +47,8 @@ def __getattr__(name: str):
|
|
|
47
47
|
"""
|
|
48
48
|
if name == "rpc_server":
|
|
49
49
|
return _instance.rpc_server
|
|
50
|
-
if name == "
|
|
50
|
+
if name == "mongo_store":
|
|
51
51
|
# Runtime-populated: the (db, prefix) binding only exists after init().
|
|
52
|
-
|
|
52
|
+
# NB: not "store" — that name is the optio_core.store submodule.
|
|
53
|
+
return _instance.mongo_store
|
|
53
54
|
raise AttributeError(f"module 'optio_core' has no attribute {name!r}")
|
|
@@ -87,15 +87,17 @@ class Optio:
|
|
|
87
87
|
self._launch_blocks: dict[uuid.UUID, _BlockEntry] = {}
|
|
88
88
|
|
|
89
89
|
@property
|
|
90
|
-
def
|
|
90
|
+
def mongo_store(self) -> MongoStore:
|
|
91
91
|
"""The (db, prefix) binding this instance was initialized with.
|
|
92
92
|
|
|
93
|
+
Named ``mongo_store`` (not ``store``) because ``optio_core.store`` is a
|
|
94
|
+
submodule — a module-level ``store`` attribute would be shadowed by it.
|
|
93
95
|
Hand it as-is to helpers that need db+prefix (e.g.
|
|
94
96
|
``optio_claudecode.delete_seed``) instead of re-deriving the prefix
|
|
95
97
|
from your own config. Raises if accessed before ``init()``.
|
|
96
98
|
"""
|
|
97
99
|
if self._config is None:
|
|
98
|
-
raise RuntimeError("optio.
|
|
100
|
+
raise RuntimeError("optio.mongo_store accessed before init()")
|
|
99
101
|
return MongoStore(db=self._config.mongo_db, prefix=self._config.prefix)
|
|
100
102
|
|
|
101
103
|
async def init(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{optio_core-0.2.2 → optio_core-0.2.3}/src/optio_core/migrations/m002_backfill_child_metadata.py
RENAMED
|
File without changes
|
{optio_core-0.2.2 → optio_core-0.2.3}/src/optio_core/migrations/m003_backfill_has_saved_state.py
RENAMED
|
File without changes
|
{optio_core-0.2.2 → optio_core-0.2.3}/src/optio_core/migrations/m004_create_expire_at_ttl_index.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|