b3d02e3ba7
* ns-api: remove sqlite support ns-api: add env var to skip migrations for local dev ns-api: tidy up imports ns-api: fix deserialisation fo node descriptions update dockerfile update README fix up README and example env ns-api: bump major version to 4 ns-api: add more geoip data and new performance field in dvpn responses * ability to import partial ticketbooks * wip: adding common ecash state to NS API * buffering ticketbooks * wip * distribute tickets when getting testrun assignment * passing ticketbook data to gateway probe * wrapped around storage tx * ticketbook query fixes * clippy * modified testrun assignment to always return tickets * Update version * Update push-node-status-agent.yaml * Update Cargo.toml * add entrypoint for ns agents * sqlx prepare and cargo fmt * clippy fixes * Update ci-check-ns-api-version.yml --------- Co-authored-by: Mark Sinclair <mmsinclair@users.noreply.github.com> Co-authored-by: benedetta davico <46782255+benedettadavico@users.noreply.github.com> Co-authored-by: benedettadavico <benedetta.davico@gmail.com>
21 lines
553 B
Bash
Executable File
21 lines
553 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo "Starting agent loop with sleep interval: ${SLEEP_TIME}s"
|
|
|
|
# Trap SIGTERM to allow graceful shutdown
|
|
trap "echo 'Stopping...'; exit 0" SIGTERM
|
|
|
|
DEFAULT_ARGS="run-probe --server \"${NODE_STATUS_AGENT_SERVER_ADDRESS}|${NODE_STATUS_AGENT_SERVER_PORT}\" "
|
|
ARGS=${NODE_STATUS_AGENT_ARGS:-${DEFAULT_ARGS}}
|
|
COMMAND="/nym/nym-node-status-agent ${ARGS}"
|
|
|
|
echo "default_args = '${DEFAULT_ARGS}'"
|
|
echo "args = '${ARGS}'"
|
|
echo "command = '${COMMAND}'"
|
|
|
|
# Run probe in an infinite loop
|
|
while true; do
|
|
eval "$COMMAND"
|
|
sleep "$SLEEP_TIME"
|
|
done
|