Skip to content

Workqueue housekeeping - #11

Merged
wkz merged 6 commits into
mainfrom
workqueue-housekeeping
Sep 9, 2026
Merged

wkz merged 6 commits into
mainfrom
workqueue-housekeeping

Conversation

@rical

@rical rical commented May 12, 2026

Copy link
Copy Markdown
Contributor

Workqueue housekeeping changes intended to make life easer and to supply a local interface with info.

I'm marking this as draft as it's based on another PR which is still in review. Once its merged we can change this base branch and remove the draft status.

rical added 4 commits May 12, 2026 14:38
WorkQueue.process_next short-circuits when <workqueue>/paused
exists. In-flight jobs finish normally; nothing new moves from
todo/ to doing/.

Signed-off-by: Richard Alpe <richard@bit42.se>
Mirrors GitHub-style commit-status semantics: one current result per
job, overwritten on each run.

This can be used locally to display test results without access to
github.

Signed-off-by: Richard Alpe <richard@bit42.se>
When enqueueing, fetch the first line of the commit message via
`gh api repos/<r>/commits/<sha>` and store it as `heading` in the job.

This is intended to make life easier for humans.

Signed-off-by: Richard Alpe <richard@bit42.se>
Start by locking at files in todo/forced, these files has priority
over todo/*.json and are started even if a pause file exists.

Nothing in ghmoon currently moves a todo entry to todo/forced. This is
handled by the user or external tools.

Signed-off-by: Richard Alpe <richard@bit42.se>
@rical
rical changed the base branch from multiple-config-support to main June 15, 2026 07:24
@rical
rical marked this pull request as ready for review June 15, 2026 07:27
They will eventually be truncated by the job itself, but removing
them up front means the UI (ghmoon-web) won't show the old once.

Signed-off-by: Richard Alpe <richard@bit42.se>
An empty file in the workqueue's abort/ directory, named after a job,
asks the daemon to stop it.

Only the repo knows how to tear down what it started, hence the abort hook.
If the abort did not work, the job simply carries on.

Signed-off-by: Richard Alpe <richard@bit42.se>
@wkz
wkz merged commit 1b35def into main Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants