Skip to content

feat: scope drain by job id#2090

Merged
chubes4 merged 1 commit into
mainfrom
feat/scoped-drain-job-filter
May 19, 2026
Merged

feat: scope drain by job id#2090
chubes4 merged 1 commit into
mainfrom
feat/scoped-drain-job-filter

Conversation

@chubes4
Copy link
Copy Markdown
Member

@chubes4 chubes4 commented May 18, 2026

Summary

  • Adds wp datamachine drain --job-id=<id[,id]> so operators can drain known jobs without running the whole Data Machine queue.
  • Applies the job scope to pending counts, status counts, and selected Action Scheduler action IDs.
  • Extends the existing drain smoke test to cover the job-id scope contract.

Fixes #2089.

Testing

  • php -l inc/Cli/Commands/DrainCommand.php
  • php tests/flow-run-cli-drain-smoke.php
  • homeboy lint --changed-since origin/main
  • homeboy test --changed-since origin/main

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (GPT-5.5)
  • Used for: Diagnosed blocked cleanup queue ordering, drafted the scoped drain option and smoke-test coverage, and ran verification for Chris to review.

@homeboy-ci
Copy link
Copy Markdown
Contributor

homeboy-ci Bot commented May 18, 2026

Homeboy Results — data-machine

Lint

lint — passed

ℹ️ Full options: homeboy docs commands/lint
Deep dive: homeboy lint data-machine --changed-since 822ba9a

Test

test — passed

  • 137 passed

ℹ️ Auto-fix lint issues: homeboy refactor data-machine --from lint --write
ℹ️ Collect coverage: homeboy test data-machine --coverage
ℹ️ Save test baseline: homeboy test data-machine --baseline
ℹ️ Pass args to test runner: homeboy test -- [args]
ℹ️ Full options: homeboy docs commands/test
Deep dive: homeboy test data-machine --changed-since 822ba9a

Audit

audit — passed

  • requested_detectors — 5 finding(s)
  • intra-method-duplication — 1 finding(s)
  • test_coverage — 1 finding(s)
  • Total: 7 finding(s)

Deep dive: homeboy audit data-machine --changed-since 822ba9a

Tooling versions
  • Homeboy CLI: homeboy 0.182.0+7d01dc12
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: 12027d95
  • Action: unknown@unknown

@chubes4 chubes4 merged commit c73d9f2 into main May 19, 2026
5 checks passed
@chubes4 chubes4 deleted the feat/scoped-drain-job-filter branch May 19, 2026 02:56
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.

Drain cannot target cleanup jobs when unrelated due work is blocked

1 participant