Skip to content

Engine Agent

This agent is in charge of running the engine loop continuously.

Running the agent

The agent can be run as a standard Django management command:

sudo python3 manage.py command_agent_engine

Running continuously

By default, only a single loop of the engine is run. If you want to run it continuously, add the --forever flag.

This is how the agent is run in production

SystemD

In production, this agent is setup to run via systemd. You can find the agent setup on cubed-command-a and cubed-command-b, however only one version will be enabled at one time.

To check the status of the agent, you can run this command:

sudo systemctl status command-agent-engine

Multiple versions

Only a single version of this agent should be running at one time, otherwise undefined and otherwise undesirable behavior might happen.