Skip to main content
Monitor all processes running in your sandbox, including system processes and background code executions. This helps you track resource usage, debug issues, and manage long-running tasks.

Overview

HopX provides two types of process listings:
  • System Processes: All processes running in the sandbox (requires Agent v3.2.0+)
  • Background Executions: Processes started via execute_code_background() or run_code_background()
System process listing requires VM Agent v3.2.0 or later. Check your agent version using sandbox.get_agent_info().

System Processes

List all system processes running in the sandbox:
Expected Output:

Background Execution Processes

List processes started via background execution:
Expected Output:

Process Structure

System Process Object

Background Process Object

Filtering and Searching

Filter processes by command or user:
Expected Output:

Monitoring Process Status

Monitor background processes to track their progress:
Expected Output:

Process Limits

Control the number of processes returned:
Expected Output:

Use Cases

Debugging Hanging Processes

Identify processes that might be causing issues:
Expected Output:

Tracking Background Jobs

Monitor multiple background executions:
Expected Output:

Best Practices

Use system processes to debug issues and understand what’s running in your sandbox environment.
Use background process listing to monitor and manage long-running code executions started via run_code_async() or execute_code_background().
System process listing is limited to 200 processes by default. If you have more processes, results may be truncated.
Check process status regularly for background executions to detect completion or failures early.

API Reference

Python SDK

  • sandbox.list_system_processes() - List all system processes (v3.2.0+)
  • sandbox.list_processes() - List background execution processes

JavaScript SDK

  • sandbox.listSystemProcesses() - List all system processes (v3.2.0+)
  • sandbox.listProcesses() - List background execution processes

API Endpoints

  • GET /processes - List all system processes (max 200, v3.2.0+)
  • GET /execute/processes - List background execution processes

Next Steps