mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 18:02:41 +02:00
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:
commit
ec4cd2babb
2 changed files with 11 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue