This fork is intentionally minimal and only keeps the comfyui-json backend used by this project.
workers/comfyui-json/worker.py- primary PyWorker backendstart_server.sh- startup bootstrap script used by Vast templatesdefault.sh- current provisioning script to use from templatePROVISIONING_SCRIPTGET /readyz- readiness route for Trigger/Vast boot checksGET /status-summaryz- cached lightweight status for routine pollingGET /statusz- structured machine status, fatal signals, disk state, and recent log tails- bootstrap status server on the raw PyWorker port so
/status-summaryzand/statuszare reachable during provisioning before the real worker starts
To reduce maintenance and confusion, unused template workers were removed from this fork:
workers/openaiworkers/tgiworkers/wanworkers/ace
BACKEND=comfyui-jsonPYWORKER_REPO=https://github.com/ByQwank/pyworkerPROVISIONING_SCRIPT=<raw url to default.sh>HF_TOKEN=<huggingface token>PYWORKER_MANIFEST_SECRET=<shared HMAC secret for LoRA manifests>- expose the raw PyWorker port in your Vast template, e.g.
-p 3000:3000
Optional:
PYWORKER_REF=<branch|tag|commit>SDK_BRANCH=<vast-sdk branch|tag|commit>SDK_VERSION=<vastai-sdk version>PYWORKER_REQUIRE_MANIFEST=auto|true|false(defaultauto, requires signed manifests when secret is set)PYWORKER_MANIFEST_ENDPOINT=direct-instance(must match Trigger manifest endpoint)PYWORKER_STATUS_SUMMARY_ROUTE=/status-summaryzPYWORKER_STATUS_SUMMARY_CACHE_MS=10000
Use this URL format in your Vast template:
https://raw.githubusercontent.com/ByQwank/pyworker/main/default.sh
If you pin to a commit, replace main with that commit SHA.
- Do not commit API keys, tokens, or secrets to this repo.
- Keep credentials in Vast/Trigger/Convex environment variables only.
- This repo is safe to keep public as long as secrets remain in env vars.