Merge branch 'update-agent-doc' into 'main'

📝 — Update agent doc (on using the env vars)

See merge request framasoft/framaspace/argos!11
This commit is contained in:
Alexis Metaireau 2023-11-22 15:35:27 +00:00
commit ec4cd2babb
2 changed files with 11 additions and 1 deletions

View file

@ -40,6 +40,11 @@ def agent(server, auth, max_tasks, wait_time, log_level):
"""Get and run tasks to the provided server. Will wait for new tasks.
Usage: argos agent https://argos.server "auth-token-here"
Alternatively, you can use the following environment variables to avoid passing
arguments to the agent on the command line:
ARGOS_AGENT_SERVER_URL=https://argos.server
ARGOS_AGENT_TOKEN=auth-token-here
"""
click.echo("Starting argos agent. Will retry forever.")
from argos.logging import logger

View file

@ -46,6 +46,11 @@ Usage: argos agent [OPTIONS] SERVER AUTH
Usage: argos agent https://argos.server "auth-token-here"
Alternatively, you can use the following environment variables to avoid passing
arguments to the agent on the command line:
ARGOS_AGENT_SERVER_URL=https://argos.server
ARGOS_AGENT_TOKEN=auth-token-here
Options:
--max-tasks INTEGER Number of concurrent tasks this agent can run
--wait-time INTEGER Waiting time between two polls on the server