xbat Logo XBAT
AboutDemo
CTRL+K
Megware logo

Control Daemon

xbatctld Control Daemon

The xbatctld is a Python application that takes care of all management tasks for the xbat. It handles all interactions with the host system and Slurm. A gRPC server is provided to communicate with the backend.

Create a new virtual environment, activate it, and install the required packages.

cd src

UV_PROJECT_ENVIRONMENT=xbatctld/.venv uv sync --locked --group xbatctld

Start the development server with the command below:

cd src/xbatctld
source .venv/bin/activate

python3 __init__.py

The proto file can be found at src/shared/grpc/xbat.proto. During the initial setup of the Python packages, the gRPC code is generated automatically. When making changes to the proto file, the code must be regenerated with the command below:

cd src

UV_PROJECT_ENVIRONMENT=xbatctld/.venv uv run --locked --group xbatctld python setup.py build_proto

The gRPC server is available at Port 50051.

Edit this Page on GitHub