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:

onestep-agent start

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.2.tar.gz (46.8 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.2-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: onestep_worker_agent-0.1.2.tar.gz
  • Upload date:
  • Size: 46.8 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.2.tar.gz
Algorithm Hash digest
SHA256 e26af36b833fff8bab5ace73e56f5172bf2289fc5e1998db829ad33c3067d9dc
MD5 ca81bb7fdf5a97be25dcd4f7d854a3d6
BLAKE2b-256 4c0986232a2025024aac73d99912811f5594b99eec29512a75f63d9379ec64d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for onestep_worker_agent-0.1.2.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.2-py3-none-any.whl.

File metadata

File hashes

Hashes for onestep_worker_agent-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 695d64f3f55289f34c3b8e07ff0e68b56c426a090a3f1dcf5708732e4639d607
MD5 0d83c282db9d22ee09c11248bad1a529
BLAKE2b-256 82d5ac303642552dc9d36486efc3313c95dbc91bad0c7f92769e121e769db613

See more details on using hashes here.

Provenance

The following attestation bundles were made for onestep_worker_agent-0.1.2-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