refactor(runtime): relocate trace store and break dependency cycle
This commit is contained in:
1 parent
584bb2d09c
commit
05459d040d
21 files changed
+134
-64
No files matched your search
@@ -25,12 +25,15 @@ mcp_server/
|
||||
│ ├── task_manager.py # mobile_manage_task
|
||||
│ ├── device_state.py # mobile_get_device_state
|
||||
│ └── inspect_trace.py # mobile_inspect_trace
|
||||
└── utils/ # Environment, device, and trace utilities
|
||||
└── utils/ # Environment and device utilities
|
||||
├── device_utils.py # Cross-platform ADB and emulator resolver
|
||||
├── env_utils.py # Python interpreter and process manager
|
||||
└── trace_store.py # Traces directory and status manager
|
||||
└── env_utils.py # Python interpreter and process manager
|
||||
```
|
||||
|
||||
The trace status store (traces directory layout and `status.json` lifecycle)
|
||||
lives in the neutral base package as `artemis/runtime/trace_store.py`, shared
|
||||
by the MCP server, the admin console, and spawned worker processes.
|
||||
|
||||
## 🔔 Multi-Platform Notification & Wakeup Support
|
||||
|
||||
When you start an asynchronous mobile test via `mobile_run_task`, Artemis MCP runs the job as a detached background process so the AI agent is not blocked. Upon completion or failure, Artemis dispatches alerts across **all available notification channels** so that both human developers and AI agents are notified immediately across different platforms:
|
||||
|
||||
@@ -41,8 +41,9 @@ try:
|
||||
except Exception:
|
||||
load_dotenv(os.path.join(PROJECT_ROOT, ".env"))
|
||||
|
||||
from artemis.runtime import trace_store
|
||||
from mcp_server.notifiers import notify
|
||||
from mcp_server.utils import device_utils, trace_store
|
||||
from mcp_server.utils import device_utils
|
||||
|
||||
|
||||
async def _initialize_agent(
|
||||
@@ -80,6 +81,9 @@ def resolve_profile_file() -> str | None:
|
||||
]
|
||||
)
|
||||
try:
|
||||
# Deliberate guarded import mirroring the module-level bootstrap above:
|
||||
# profile resolution must degrade to repo-relative candidates when the
|
||||
# artemis config package cannot be loaded.
|
||||
from artemis.config.paths import get_app_dir
|
||||
|
||||
app_dir = str(get_app_dir())
|
||||
@@ -146,6 +150,11 @@ async def run_task(
|
||||
target_serial = device_serial
|
||||
|
||||
try:
|
||||
# Deliberate lazy imports: the SDK pulls in the full agent stack
|
||||
# (LLM clients, graph, drivers), and importing it inside this try
|
||||
# converts an import-time failure into a properly recorded task
|
||||
# failure (trace status + wakeup notification) instead of a crash
|
||||
# before status.json is ever updated.
|
||||
from artemis.config import settings
|
||||
from artemis.sdk import Agent
|
||||
from artemis.sdk.builders import Builders
|
||||
@@ -167,6 +176,8 @@ async def run_task(
|
||||
target_serial = settings.ADB_DEVICE_SERIAL or os.environ.get("ADB_DEVICE_SERIAL")
|
||||
if not target_serial:
|
||||
try:
|
||||
# Optional path: pool-based selection falls back to the
|
||||
# first connected device on any import or query failure.
|
||||
from artemis.runtime import device_pool
|
||||
target_serial = device_pool.select_device()
|
||||
except Exception:
|
||||
|
||||
@@ -20,8 +20,8 @@ import os
|
||||
import time
|
||||
from typing import Any
|
||||
|
||||
from artemis.runtime import trace_store
|
||||
from mcp_server.notifiers.base import BaseNotifier
|
||||
from mcp_server.utils import trace_store
|
||||
|
||||
logger = logging.getLogger("mcp_server.notifiers.file")
|
||||
|
||||
|
||||
@@ -23,7 +23,8 @@ from typing import Any
|
||||
from PIL import Image, ImageDraw
|
||||
|
||||
from mcp_server.base import mcp
|
||||
from mcp_server.utils import env_utils, trace_store
|
||||
from mcp_server.utils import env_utils
|
||||
from artemis.runtime import trace_store
|
||||
from artemis.utils.visualization import draw_action_overlay_on_image
|
||||
from artemis.utils.task_tree import (
|
||||
_render_step_detailed,
|
||||
|
||||
@@ -24,8 +24,15 @@ from typing import Any
|
||||
|
||||
from mcp_server.base import mcp
|
||||
from mcp_server.notifiers import notify
|
||||
from mcp_server.utils import env_utils, trace_store
|
||||
from artemis.runtime import DeviceExecutionLock, process_supervisor
|
||||
from mcp_server.utils import env_utils
|
||||
from artemis.runtime import (
|
||||
DeviceExecutionLock,
|
||||
is_daemon_running,
|
||||
process_supervisor,
|
||||
stop_task_on_daemon,
|
||||
trace_store,
|
||||
)
|
||||
from artemis.runtime.process_probe import pid_is_alive
|
||||
|
||||
_LIVENESS_FAILURE_ERROR = "Task runner process terminated unexpectedly."
|
||||
# Grace window covering the spawn race: the launcher pid may already have exited
|
||||
@@ -48,8 +55,6 @@ def _pid_alive(pid: int | None) -> bool:
|
||||
pid_int = int(pid)
|
||||
except (TypeError, ValueError):
|
||||
return False
|
||||
from artemis.runtime.process_probe import pid_is_alive
|
||||
|
||||
return pid_is_alive(pid_int)
|
||||
|
||||
|
||||
@@ -451,8 +456,6 @@ def mobile_manage_task(
|
||||
stopped_via_daemon = False
|
||||
if os.environ.get("ARTEMIS_STANDALONE") != "1":
|
||||
try:
|
||||
from artemis.runtime import is_daemon_running, stop_task_on_daemon
|
||||
|
||||
if is_daemon_running():
|
||||
stopped_via_daemon = stop_task_on_daemon(trace_id)
|
||||
except Exception:
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
|
||||
"""MCP Tool: mobile_run_task."""
|
||||
|
||||
import logging
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
@@ -24,8 +25,15 @@ import uuid
|
||||
|
||||
from mcp_server.base import mcp
|
||||
from mcp_server.notifiers import notify
|
||||
from mcp_server.utils import env_utils, trace_store
|
||||
from artemis.runtime import DeviceExecutionLock
|
||||
from mcp_server.utils import env_utils
|
||||
from artemis.config.runtime import read_ipc_port
|
||||
from artemis.runtime import (
|
||||
DeviceExecutionLock,
|
||||
device_pool,
|
||||
ensure_daemon_running,
|
||||
submit_task_to_daemon,
|
||||
trace_store,
|
||||
)
|
||||
|
||||
# Seconds the spawned runner gets to finish its imports and open its log files
|
||||
# before the spawn is declared dead. Normal startup creates stdout.log within a
|
||||
@@ -136,8 +144,6 @@ def _validate_device_serial(device_serial: str) -> dict[str, Any] | None:
|
||||
validation is skipped rather than blocking task submission.
|
||||
"""
|
||||
try:
|
||||
from artemis.runtime import device_pool
|
||||
|
||||
# The shared validator fails open on an indeterminate/empty enumeration:
|
||||
# the task proceeds and fails downstream with a clear no-device error.
|
||||
detail = device_pool.validate_explicit_serial(device_serial)
|
||||
@@ -249,8 +255,6 @@ def mobile_run_task(
|
||||
# 3. Dispatch via unified Artemis Daemon scheduler if available (unless standalone forced)
|
||||
if os.environ.get("ARTEMIS_STANDALONE") != "1":
|
||||
try:
|
||||
from artemis.runtime import ensure_daemon_running, submit_task_to_daemon
|
||||
|
||||
is_running, base_url = ensure_daemon_running(timeout=2.0, wait_ready=True)
|
||||
if is_running:
|
||||
resp = submit_task_to_daemon(
|
||||
@@ -321,7 +325,6 @@ def mobile_run_task(
|
||||
pass
|
||||
|
||||
# When Daemon is running, refuse to launch a conflicting standalone runner on the same device
|
||||
import logging
|
||||
logging.getLogger("mcp_server").warning(
|
||||
f"Daemon dispatch failed for task '{task_desc}'. Aborting dispatch to prevent runner collision."
|
||||
)
|
||||
@@ -332,7 +335,6 @@ def mobile_run_task(
|
||||
"message": "Task rejected or timed out in Artemis Daemon. Standalone fallback blocked to prevent runner collision.",
|
||||
}
|
||||
except Exception as exc:
|
||||
import logging
|
||||
logging.getLogger("mcp_server").warning(
|
||||
f"Daemon dispatch failed: {exc}"
|
||||
)
|
||||
@@ -387,8 +389,6 @@ def mobile_run_task(
|
||||
env["ARTEMIS_DEVICE_ID"] = device_serial
|
||||
env[DeviceExecutionLock.QUEUE_TICKET_ENV] = queue_ticket
|
||||
try:
|
||||
from artemis.config.runtime import read_ipc_port
|
||||
|
||||
ipc_port = read_ipc_port()
|
||||
if ipc_port:
|
||||
env["ARTEMIS_IPC_PORT"] = str(ipc_port)
|
||||
|
||||
@@ -22,6 +22,9 @@ from typing import Any
|
||||
|
||||
def get_project_root() -> str:
|
||||
"""Returns the absolute path to the project root repository."""
|
||||
# Deliberate lazy import: this helper must keep working when the artemis
|
||||
# package (or its config bootstrap) is unavailable or broken, falling back
|
||||
# to filesystem-relative resolution below.
|
||||
try:
|
||||
from artemis.config.paths import ROOT_DIR
|
||||
|
||||
|
||||
@@ -1,346 +0,0 @@
|
||||
# Copyright 2026 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
"""Trace storage and lifecycle management for MCP background automation tasks.
|
||||
|
||||
status.json is written and updated concurrently by real independent processes
|
||||
(the admin console daemon, MCP server tools, and spawned worker subprocesses),
|
||||
so this module provides:
|
||||
|
||||
- Atomic writes (temp file + fsync + ``os.replace``) so readers never observe
|
||||
a torn/truncated file.
|
||||
- A PID-aware ``status.json.lock`` file (O_CREAT | O_EXCL with bounded retry
|
||||
and stale-lock detection) serializing read-modify-write updates.
|
||||
- Three-state reads: missing file (silent ``None``), corrupt JSON (WARNING +
|
||||
the file is quarantined as ``status.json.corrupt``), other IO errors
|
||||
(WARNING).
|
||||
"""
|
||||
|
||||
from contextlib import contextmanager
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import time
|
||||
from typing import Any
|
||||
import uuid
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
try:
|
||||
from artemis.config.paths import get_traces_dir
|
||||
|
||||
TRACES_DIR = str(get_traces_dir())
|
||||
except Exception:
|
||||
PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
TRACES_DIR = os.path.join(PROJECT_ROOT, "traces")
|
||||
|
||||
_LOCK_TIMEOUT_SECONDS = 5.0
|
||||
_LOCK_POLL_SECONDS = 0.05
|
||||
# A lock younger than this is assumed to be held by a live writer and is not
|
||||
# probed for staleness. Probing opens the lock file, and on Windows an open
|
||||
# reader handle blocks the owner's unlink (no FILE_SHARE_DELETE), so eager
|
||||
# probing can leak the lock forever under contention.
|
||||
_LOCK_STALE_PROBE_MIN_AGE_SECONDS = 0.5
|
||||
_LOCK_STALE_PROBE_INTERVAL_SECONDS = 1.0
|
||||
_MALFORMED_LOCK_GRACE_SECONDS = 10.0
|
||||
_REPLACE_RETRIES = 5
|
||||
_REPLACE_RETRY_DELAY_SECONDS = 0.02
|
||||
_UNLINK_RETRIES = 10
|
||||
_UNLINK_RETRY_DELAY_SECONDS = 0.01
|
||||
|
||||
|
||||
def _own_create_time() -> float:
|
||||
try:
|
||||
import psutil
|
||||
|
||||
return float(psutil.Process(os.getpid()).create_time())
|
||||
except Exception:
|
||||
return 0.0
|
||||
|
||||
|
||||
def _replace_with_retry(src: str, dst: str) -> None:
|
||||
"""``os.replace`` with retries for transient Windows sharing violations."""
|
||||
last_error: OSError | None = None
|
||||
for attempt in range(_REPLACE_RETRIES):
|
||||
try:
|
||||
os.replace(src, dst)
|
||||
return
|
||||
except OSError as exc:
|
||||
last_error = exc
|
||||
if attempt < _REPLACE_RETRIES - 1:
|
||||
time.sleep(_REPLACE_RETRY_DELAY_SECONDS)
|
||||
raise last_error # type: ignore[misc]
|
||||
|
||||
|
||||
def _atomic_write_json(path: str, data: dict[str, Any]) -> None:
|
||||
"""Write JSON atomically: temp file in the same directory + fsync + replace."""
|
||||
os.makedirs(os.path.dirname(path), exist_ok=True)
|
||||
temp_path = f"{path}.{uuid.uuid4().hex}.tmp"
|
||||
try:
|
||||
with open(temp_path, "w", encoding="utf-8") as f:
|
||||
json.dump(data, f, indent=2, ensure_ascii=False)
|
||||
f.flush()
|
||||
os.fsync(f.fileno())
|
||||
_replace_with_retry(temp_path, path)
|
||||
finally:
|
||||
# A leftover temp file (e.g. after a crash between write and replace)
|
||||
# never affects readers; remove it best-effort on the success path.
|
||||
try:
|
||||
os.unlink(temp_path)
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
|
||||
def _unlink_with_retry(path: str) -> bool:
|
||||
"""Best-effort unlink retrying transient Windows sharing violations."""
|
||||
for attempt in range(_UNLINK_RETRIES):
|
||||
try:
|
||||
os.unlink(path)
|
||||
return True
|
||||
except FileNotFoundError:
|
||||
return True
|
||||
except OSError:
|
||||
if attempt < _UNLINK_RETRIES - 1:
|
||||
time.sleep(_UNLINK_RETRY_DELAY_SECONDS)
|
||||
return False
|
||||
|
||||
|
||||
def _lock_is_stale(lock_path: str) -> bool:
|
||||
"""A status lock is stale when its owner process is gone or it is malformed and old."""
|
||||
try:
|
||||
if time.time() - os.path.getmtime(lock_path) < _LOCK_STALE_PROBE_MIN_AGE_SECONDS:
|
||||
# Young lock: assume a live writer holds it. Do not open the file
|
||||
# (an open reader handle would block the owner's unlink on Windows).
|
||||
return False
|
||||
except OSError:
|
||||
return False
|
||||
try:
|
||||
with open(lock_path, encoding="utf-8") as f:
|
||||
payload = json.load(f)
|
||||
pid = int(payload["pid"])
|
||||
created_at = float(payload.get("process_created_at", 0.0) or 0.0)
|
||||
except FileNotFoundError:
|
||||
return False
|
||||
except Exception:
|
||||
try:
|
||||
return time.time() - os.path.getmtime(lock_path) >= _MALFORMED_LOCK_GRACE_SECONDS
|
||||
except OSError:
|
||||
return False
|
||||
from artemis.runtime.process_probe import pid_is_alive
|
||||
|
||||
return not pid_is_alive(pid, created_at if created_at > 0 else None)
|
||||
|
||||
|
||||
@contextmanager
|
||||
def _status_lock(path: str):
|
||||
"""Bounded cross-process mutex for read-modify-write updates of ``path``.
|
||||
|
||||
Yields True when the lock was acquired. On timeout the caller proceeds
|
||||
without mutual exclusion (with a WARNING) rather than deadlocking: a
|
||||
last-writer-wins update is still strictly better than blocking MCP tools
|
||||
forever on a leaked lock.
|
||||
"""
|
||||
lock_path = f"{path}.lock"
|
||||
os.makedirs(os.path.dirname(lock_path), exist_ok=True)
|
||||
payload = json.dumps({"pid": os.getpid(), "process_created_at": _own_create_time()})
|
||||
deadline = time.monotonic() + _LOCK_TIMEOUT_SECONDS
|
||||
acquired = False
|
||||
last_stale_probe = 0.0
|
||||
while not acquired:
|
||||
try:
|
||||
fd = os.open(lock_path, os.O_CREAT | os.O_EXCL | os.O_WRONLY)
|
||||
except FileExistsError:
|
||||
now = time.monotonic()
|
||||
if now - last_stale_probe >= _LOCK_STALE_PROBE_INTERVAL_SECONDS:
|
||||
last_stale_probe = now
|
||||
if _lock_is_stale(lock_path):
|
||||
_unlink_with_retry(lock_path)
|
||||
continue
|
||||
if now >= deadline:
|
||||
logger.warning(
|
||||
f"Timed out acquiring trace status lock {lock_path}; "
|
||||
"proceeding without mutual exclusion"
|
||||
)
|
||||
break
|
||||
time.sleep(_LOCK_POLL_SECONDS)
|
||||
except OSError as exc:
|
||||
logger.warning(f"Could not create trace status lock {lock_path}: {exc}")
|
||||
break
|
||||
else:
|
||||
try:
|
||||
os.write(fd, payload.encode("utf-8"))
|
||||
finally:
|
||||
os.close(fd)
|
||||
acquired = True
|
||||
try:
|
||||
yield acquired
|
||||
finally:
|
||||
if acquired and not _unlink_with_retry(lock_path):
|
||||
logger.warning(
|
||||
f"Could not remove trace status lock {lock_path}; it will be "
|
||||
"reaped as stale once its owner exits"
|
||||
)
|
||||
|
||||
|
||||
def get_trace_dir(trace_id: str) -> str:
|
||||
"""Returns the absolute path to the directory for a given trace_id."""
|
||||
return os.path.join(TRACES_DIR, trace_id)
|
||||
|
||||
|
||||
def get_status_path(trace_id: str) -> str:
|
||||
"""Returns the absolute path to the status.json file for a given trace_id."""
|
||||
return os.path.join(get_trace_dir(trace_id), "status.json")
|
||||
|
||||
|
||||
def get_trace_notes_dir(trace_id: str) -> str:
|
||||
"""Returns the absolute path to the notes directory for a given trace_id."""
|
||||
return os.path.join(get_trace_dir(trace_id), "notes")
|
||||
|
||||
|
||||
def get_trace_stdout_log_path(trace_id: str) -> str:
|
||||
"""Returns the absolute path to the stdout.log file for a given trace_id."""
|
||||
return os.path.join(get_trace_dir(trace_id), "stdout.log")
|
||||
|
||||
|
||||
def get_trace_stderr_log_path(trace_id: str) -> str:
|
||||
"""Returns the absolute path to the stderr.log file for a given trace_id."""
|
||||
return os.path.join(get_trace_dir(trace_id), "stderr.log")
|
||||
|
||||
|
||||
def init_trace(
|
||||
trace_id: str,
|
||||
task_desc: str,
|
||||
model: str,
|
||||
conversation_id: str | None = None,
|
||||
device_serial: str | None = None,
|
||||
) -> dict[str, Any]:
|
||||
"""Initializes the trace directory and creates the initial status.json file."""
|
||||
trace_dir = get_trace_dir(trace_id)
|
||||
os.makedirs(trace_dir, exist_ok=True)
|
||||
|
||||
status_data: dict[str, Any] = {
|
||||
"trace_id": trace_id,
|
||||
"task_desc": task_desc,
|
||||
"model": model,
|
||||
"conversation_id": conversation_id,
|
||||
"status": "running",
|
||||
"device_serial": device_serial,
|
||||
"start_time": time.time(),
|
||||
"end_time": None,
|
||||
"error": None,
|
||||
"result": None,
|
||||
}
|
||||
|
||||
write_status(trace_id, status_data)
|
||||
return status_data
|
||||
|
||||
|
||||
def read_status(trace_id: str) -> dict[str, Any] | None:
|
||||
"""Read the status.json for a trace_id, distinguishing three failure states.
|
||||
|
||||
- Missing file: normal (a trace that was never started) -> silent ``None``.
|
||||
- Corrupt JSON: WARNING with the path; the damaged file is renamed to
|
||||
``status.json.corrupt`` as evidence, then ``None`` is returned.
|
||||
- Other IO errors: WARNING, ``None``.
|
||||
"""
|
||||
path = get_status_path(trace_id)
|
||||
if not os.path.exists(path):
|
||||
return None
|
||||
try:
|
||||
with open(path, encoding="utf-8") as f:
|
||||
return json.load(f)
|
||||
except FileNotFoundError:
|
||||
return None
|
||||
except (json.JSONDecodeError, UnicodeDecodeError, ValueError) as exc:
|
||||
logger.warning(
|
||||
f"Corrupt status.json for trace {trace_id} at {path}: {exc}; "
|
||||
f"quarantining as {path}.corrupt"
|
||||
)
|
||||
try:
|
||||
_replace_with_retry(path, f"{path}.corrupt")
|
||||
except OSError as move_exc:
|
||||
logger.warning(
|
||||
f"Could not quarantine corrupt status file {path}: {move_exc}"
|
||||
)
|
||||
return None
|
||||
except OSError as exc:
|
||||
logger.warning(f"Could not read status.json for trace {trace_id} at {path}: {exc}")
|
||||
return None
|
||||
|
||||
|
||||
def write_status(trace_id: str, data: dict[str, Any]) -> None:
|
||||
"""Atomically writes the given status dictionary to the trace's status.json."""
|
||||
_atomic_write_json(get_status_path(trace_id), data)
|
||||
|
||||
|
||||
def update_trace_status(
|
||||
trace_id: str,
|
||||
status: str,
|
||||
error: str | None = None,
|
||||
result: Any | None = None,
|
||||
device_serial: str | None = None,
|
||||
) -> dict[str, Any] | None:
|
||||
"""Updates specific fields of the status.json for a given trace_id.
|
||||
|
||||
The read-modify-write cycle holds a cross-process lock so concurrent
|
||||
updates from the daemon, MCP tools, and worker processes do not lose each
|
||||
other's fields.
|
||||
"""
|
||||
path = get_status_path(trace_id)
|
||||
with _status_lock(path):
|
||||
data = read_status(trace_id)
|
||||
if not data:
|
||||
if os.path.exists(path) or os.path.exists(f"{path}.corrupt"):
|
||||
logger.warning(
|
||||
f"Dropping status update ({status!r}) for trace {trace_id}: "
|
||||
"existing status.json is unreadable"
|
||||
)
|
||||
return None
|
||||
|
||||
# "success" is a legacy alias for the canonical "completed" terminal
|
||||
# status and must never be persisted into status.json.
|
||||
if status == "success":
|
||||
status = "completed"
|
||||
|
||||
data["status"] = status
|
||||
if status in ("completed", "failed", "cancelled"):
|
||||
data["end_time"] = time.time()
|
||||
|
||||
if error is not None:
|
||||
data["error"] = error
|
||||
if result is not None:
|
||||
data["result"] = result
|
||||
if device_serial is not None:
|
||||
data["device_serial"] = device_serial
|
||||
|
||||
write_status(trace_id, data)
|
||||
return data
|
||||
|
||||
|
||||
def update_trace_device_serial(trace_id: str, device_serial: str) -> dict[str, Any] | None:
|
||||
"""Updates the device_serial field of the status.json for a given trace_id."""
|
||||
path = get_status_path(trace_id)
|
||||
with _status_lock(path):
|
||||
data = read_status(trace_id)
|
||||
if not data:
|
||||
if os.path.exists(path) or os.path.exists(f"{path}.corrupt"):
|
||||
logger.warning(
|
||||
f"Dropping device_serial update for trace {trace_id}: "
|
||||
"existing status.json is unreadable"
|
||||
)
|
||||
return None
|
||||
|
||||
data["device_serial"] = device_serial
|
||||
write_status(trace_id, data)
|
||||
return data
|
||||
Reference in new issue
Block a user