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()orrun_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:- Python
- JavaScript
Background Execution Processes
List processes started via background execution:- Python
- JavaScript
Process Structure
System Process Object
Background Process Object
Filtering and Searching
Filter processes by command or user:- Python
- JavaScript
Monitoring Process Status
Monitor background processes to track their progress:- Python
- JavaScript
Process Limits
Control the number of processes returned:- Python
- JavaScript
Use Cases
Debugging Hanging Processes
Identify processes that might be causing issues:- Python
- JavaScript
Tracking Background Jobs
Monitor multiple background executions:- Python
- JavaScript
Best Practices
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
Related
- System Metrics - Monitor agent performance metrics
- Background Execution - Start background processes
- SDK: sandbox.list_processes() - Python SDK method
- API: GET /execute/processes - VM Agent API endpoint
- CLI System Commands - System operations from CLI
Next Steps
- Learn about System Metrics to monitor agent performance
- Explore Background Execution to start background processes
- Review Process Management for advanced process control

