Repository navigation
Conversation
rakyll
force-pushed
the
runner-status-file
branch
from
November 24, 2026 04:58
c641c36 to
a988d03
Compare
rakyll
force-pushed
the
runner-status-file
branch
from
November 24, 2026 05:18
acdfd5c to
9e62470
Compare
Add a working queue (store.WorkingQueue, the working_tasks table) of the tasks whose end is not recorded yet: ResumeTask queues a task, and recording its end or deleting the task removes it. The loop that asks runners how their tasks ended moves from internal/server to internal/observer and goes through the queue, reading each task's actor with GetActor. The loop runs in a new binary, cmd/ax-observer, shipped in the ax-server image and deployed as the one-replica ax-observer Deployment. ax-server no longer runs it.
This was referenced Nov 24, 2026
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates #690 for
COMPLETEDandFAILED;REQUIRES_ACTIONis not handled yet.A task's command now says how the task ended by writing one JSON object, at most 16 KiB, to
$AX_STATUS_FILE(<workspace>/.ax/status):Runner
AX_STATUS_FILEto the command and creates<workspace>/.ax.GET /runner/v1alpha1/status, reading it on each request; the runner keeps no status in memory.FAILEDwith the error. With no file, the task has not ended.Running.AX_OUTPUT_FILE;outputin the status file replaces it.AcceptPushesremoved).ax-server
Server.ObserveStatus(internal/server/observe.go) runs every 5 s. It lists running actors and asks each runner whose task has no stored state, 16 at a time. It stores the firstCOMPLETED/FAILEDunder the task lock:status.state,status.outcome.output, andReady=FalsewithTaskCompleted/TaskFailed.GetTask/ListTasksnever call the runner.COMPLETEDandFAILEDstay through suspend and resume.substrate.Client.ListActorstakes optional states and filters client-side, since Substrate'sListActorshas no state filter.ax sshalso connects to a task that has an outcome.Docs:
DESIGN.md,docs/{runner,manifests,concepts,observability}.md,skills/substrate/SKILL.md,AGENTS.md,hack/hero-demo(output file removed).Follow-up: #741.
Testing
make verify,go build ./cmd/ax ./cmd/ax-server ./cmd/ax-runner,go test ./...make test-local-install. None of this has run in a real sandbox yet.