Allow per-agent Telegram env files (#12)
This commit is contained in:
parent
d0a4f518d5
commit
dba8a21e74
2 changed files with 12 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ ReadWritePaths=/opt/teleo-eval/pipeline/pipeline.db-shm
|
||||||
ReadWritePaths=/opt/teleo-eval/workspaces/main/agents
|
ReadWritePaths=/opt/teleo-eval/workspaces/main/agents
|
||||||
|
|
||||||
Environment=PYTHONUNBUFFERED=1
|
Environment=PYTHONUNBUFFERED=1
|
||||||
|
EnvironmentFile=-/opt/teleo-eval/secrets/teleo-agent-%i.env
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
||||||
11
tests/test_teleo_agent_systemd.py
Normal file
11
tests/test_teleo_agent_systemd.py
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
|
||||||
|
REPO_ROOT = Path(__file__).resolve().parents[1]
|
||||||
|
|
||||||
|
|
||||||
|
def test_teleo_agent_template_supports_optional_per_agent_env_file():
|
||||||
|
unit = (REPO_ROOT / "systemd" / "teleo-agent@.service").read_text()
|
||||||
|
|
||||||
|
assert "Environment=PYTHONUNBUFFERED=1" in unit
|
||||||
|
assert "EnvironmentFile=-/opt/teleo-eval/secrets/teleo-agent-%i.env" in unit
|
||||||
Loading…
Reference in a new issue