Skip to main content

Execution host agent for OneStep Control Plane deployments.

Project description

onestep-worker-agent

Execution host agent for OneStep Control Plane deployments.

Setup

onestep-agent setup

If the config file does not exist, setup prompts for the Control Plane URL, registration token, agent name, worker-agent directory, and max concurrency. It writes:

~/.onestep/worker-agent/config.json

For non-interactive deployment:

onestep-agent setup \
  --plane-url http://localhost:8000 \
  --registration-token dev-token \
  --name worker-agent \
  --max-concurrency 2 \
  --no-start

Then start the agent in the background:

onestep-agent start

For foreground debugging, use run instead:

onestep-agent run

run keeps the control loop attached to the current terminal. start launches the same control loop in the background and writes logs to <worker-agent-dir>/agent.log.

onestep-worker-agent remains available as a compatibility alias.

Use --config-dir <dir> with either command to store/read config elsewhere. Environment variables still override config-file values:

  • ONESTEP_PLANE_URL
  • ONESTEP_AGENT_REGISTRATION_TOKEN
  • ONESTEP_WORKER_AGENT_DIR
  • ONESTEP_WORKER_AGENT_NAME
  • ONESTEP_WORKER_AGENT_MAX_CONCURRENCY

The agent registers once, stores its identity under the worker-agent directory, connects to the control plane, and runs assigned workflow packages with onestep check worker.yaml followed by onestep run worker.yaml.

Runtime state is also stored under the worker-agent directory:

  • identity.json: stable worker-agent identity and connection credential.
  • deployments.json: locally running deployments, including runtime identity, package directory, entrypoint, environment, and child process PID.

On restart, the agent restores deployments whose recorded PID is still alive, reports them in the next control-plane hello/heartbeat, and can stop them by PID. Stale records whose PID no longer exists are removed during startup.

End-to-End Smoke

With a sibling onestep-control-plane checkout, run a real local deployment smoke:

uv run python scripts/run_smoke.py

The smoke starts a temporary SQLite-backed control plane, starts this worker agent, uploads a minimal workflow package, creates a deployment, waits for the running event, stops it, and waits for stopped.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

onestep_worker_agent-0.1.3.tar.gz (47.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

onestep_worker_agent-0.1.3-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file onestep_worker_agent-0.1.3.tar.gz.

File metadata

  • Download URL: onestep_worker_agent-0.1.3.tar.gz
  • Upload date:
  • Size: 47.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for onestep_worker_agent-0.1.3.tar.gz
Algorithm Hash digest
SHA256 9f56fc7da1e8333ca8c6db63e68bb55df1e506fe988ee100731169737e720ece
MD5 b921048b196636188309e6c9cb705a4c
BLAKE2b-256 5518f959539a06be33bff6290568a515f5dc2dcd7d8936f85f4781bc775f86d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for onestep_worker_agent-0.1.3.tar.gz:

Publisher: release.yml on mic1on/onestep-worker-agent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file onestep_worker_agent-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for onestep_worker_agent-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5b07de2e9cff1e67aad8859bce36e9c0268d17eaba272d9221f8cc371dffdfd2
MD5 ff6be53644d6ea444dc8e79b602ee239
BLAKE2b-256 884a276d1fe5f07c8ebe8fdb0a467d2b1231ea7a84bfafbd9e1877ea7d6ce977

See more details on using hashes here.

Provenance

The following attestation bundles were made for onestep_worker_agent-0.1.3-py3-none-any.whl:

Publisher: release.yml on mic1on/onestep-worker-agent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page