MCPcopy Create free account
hub / github.com/aliyun/data-agent-skill / check_worker_lock

Function check_worker_lock

scripts/cli/worker_lock.py:26–48  ·  view source on GitHub ↗

Check if a worker is already running for this session. Returns the PID of the running worker, or None if no worker is active. Stale lock files (dead PID) are automatically cleaned up.

(session_dir: Path)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

setup_async_workerFunction · 0.90

Calls 1

_is_pid_aliveFunction · 0.85

Tested by

no test coverage detected