mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 18:02:41 +02:00
📝 — Update agent doc (on using the env vars)
This commit is contained in:
parent
b21399792e
commit
207c4c54fc
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.
|
"""Get and run tasks to the provided server. Will wait for new tasks.
|
||||||
|
|
||||||
Usage: argos agent https://argos.server "auth-token-here"
|
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.")
|
click.echo("Starting argos agent. Will retry forever.")
|
||||||
from argos.logging import logger
|
from argos.logging import logger
|
||||||
|
|
|
@ -46,6 +46,11 @@ Usage: argos agent [OPTIONS] SERVER AUTH
|
||||||
|
|
||||||
Usage: argos agent https://argos.server "auth-token-here"
|
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:
|
Options:
|
||||||
--max-tasks INTEGER Number of concurrent tasks this agent can run
|
--max-tasks INTEGER Number of concurrent tasks this agent can run
|
||||||
--wait-time INTEGER Waiting time between two polls on the server
|
--wait-time INTEGER Waiting time between two polls on the server
|
||||||
|
@ -121,4 +126,4 @@ Options:
|
||||||
```
|
```
|
||||||
|
|
||||||
<!--[[[end]]]
|
<!--[[[end]]]
|
||||||
-->
|
-->
|
||||||
|
|
Loading…
Reference in a new issue