feat: add global device queue and readiness tracking
This commit is contained in:
1 parent
a62ac4aef1
commit
42b8988661
57 files changed
+3606
-716
No files matched your search
@@ -242,6 +242,15 @@ class DataEngine:
|
||||
pid=os.getpid(),
|
||||
)
|
||||
self.storage.create_session(session)
|
||||
try:
|
||||
from artemis.runtime import DeviceExecutionLock
|
||||
|
||||
DeviceExecutionLock.annotate_active_owner(
|
||||
session_id=str(session_id),
|
||||
ingress=os.getenv("ARTEMIS_TASK_INGRESS") or "sdk",
|
||||
)
|
||||
except Exception as exc:
|
||||
logger.debug(f"Could not annotate active device owner: {exc}")
|
||||
self.current_step_number = 0
|
||||
logger.info(f"Session started: {session_id}")
|
||||
self._publish("session_started", session.model_dump())
|
||||
|
||||
Reference in new issue
Block a user