Skip to content

feat(runtime): support daemon and cron_loopback runtime modes with loopback dispatch#2

Merged
tikhomirov merged 8 commits into
mainfrom
feat/wp-queue-work-daemon
Jul 25, 2026
Merged

feat(runtime): support daemon and cron_loopback runtime modes with loopback dispatch#2
tikhomirov merged 8 commits into
mainfrom
feat/wp-queue-work-daemon

Conversation

@tikhomirov

Copy link
Copy Markdown
Owner
  • Add RuntimeMode with cron_loopback, daemon, auto modes
  • Add LoopbackDispatcher and LoopbackHandler for async queue trigger
  • Gate cron scheduling and loopback handler by runtime mode
  • Add --daemon flag to wp queue work CLI command

tikhomirov and others added 8 commits July 25, 2026 11:01
…opback dispatch

- Add RuntimeMode with cron_loopback, daemon, auto modes
- Add LoopbackDispatcher and LoopbackHandler for async queue trigger
- Gate cron scheduling and loopback handler by runtime mode
- Add --daemon flag to wp queue work CLI command
…unavailable

Unit tests run without loading WordPress HTTP stack. The dispatcher now
returns early when wp_remote_post() does not exist, preventing fatal errors
in test environments.
…E2E tests

AdminPage registers tab initialization on the init hook. The E2E tests
read private tabs/sections properties without triggering init, so tabs
stayed empty. Explicitly calling initTabs() fixes the failing assertions.
- Replace hardcoded processing triggers with a real handler badge
  (daemon / WP-Cron + Loopback / WP-Cron only).
- Explicitly warn when loopback is inactive and jobs will be delayed.
- Fix WP-Cron disabled detection in the status block.
- Add System > Daemon worker page with WP-CLI and non-WP-CLI instructions,
  plus systemd, Supervisor, Docker Compose and plain PHP examples.
- Update Russian translations and tests.
@tikhomirov
tikhomirov merged commit fa950ee into main Jul 25, 2026
@tikhomirov
tikhomirov deleted the feat/wp-queue-work-daemon branch July 25, 2026 21:52
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.

1 participant