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_URLONESTEP_AGENT_REGISTRATION_TOKENONESTEP_WORKER_AGENT_DIRONESTEP_WORKER_AGENT_NAMEONESTEP_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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f56fc7da1e8333ca8c6db63e68bb55df1e506fe988ee100731169737e720ece
|
|
| MD5 |
b921048b196636188309e6c9cb705a4c
|
|
| BLAKE2b-256 |
5518f959539a06be33bff6290568a515f5dc2dcd7d8936f85f4781bc775f86d6
|
Provenance
The following attestation bundles were made for onestep_worker_agent-0.1.3.tar.gz:
Publisher:
release.yml on mic1on/onestep-worker-agent
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
onestep_worker_agent-0.1.3.tar.gz -
Subject digest:
9f56fc7da1e8333ca8c6db63e68bb55df1e506fe988ee100731169737e720ece - Sigstore transparency entry: 1901958100
- Sigstore integration time:
-
Permalink:
mic1on/onestep-worker-agent@828e7fb9b932602651bc1f3bfe9666b537fee344 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/mic1on
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@828e7fb9b932602651bc1f3bfe9666b537fee344 -
Trigger Event:
push
-
Statement type:
File details
Details for the file onestep_worker_agent-0.1.3-py3-none-any.whl.
File metadata
- Download URL: onestep_worker_agent-0.1.3-py3-none-any.whl
- Upload date:
- Size: 17.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b07de2e9cff1e67aad8859bce36e9c0268d17eaba272d9221f8cc371dffdfd2
|
|
| MD5 |
ff6be53644d6ea444dc8e79b602ee239
|
|
| BLAKE2b-256 |
884a276d1fe5f07c8ebe8fdb0a467d2b1231ea7a84bfafbd9e1877ea7d6ce977
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
onestep_worker_agent-0.1.3-py3-none-any.whl -
Subject digest:
5b07de2e9cff1e67aad8859bce36e9c0268d17eaba272d9221f8cc371dffdfd2 - Sigstore transparency entry: 1901958329
- Sigstore integration time:
-
Permalink:
mic1on/onestep-worker-agent@828e7fb9b932602651bc1f3bfe9666b537fee344 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/mic1on
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@828e7fb9b932602651bc1f3bfe9666b537fee344 -
Trigger Event:
push
-
Statement type: