Skip to content

v1.4.0

Latest

Choose a tag to compare

@tikhomirov tikhomirov released this 11 Nov 14:58
90781fa
  • Storage backend (Database / Redis / Memcached) and queue runner are chosen in the admin; sync moved from drivers to runners
  • Four runners: daemon / system cron, loopback (admin-ajax, like Action Scheduler), WP-Cron, synchronous. Default "Auto" picks the fastest available one and shows why; exactly one runner is active, the others register no hooks and send no requests
  • "Make active" button for every ready backend: waiting jobs are moved to the new backend under the worker lock, nothing is lost or run twice
  • Settings can live in a // BEGIN WP Queue block of wp-config.php, edited atomically by the plugin (backup, syntax check, WordPress load check, automatic rollback; a snippet is shown when the file is read-only). Other WP_QUEUE_* constants in wp-config.php lock the setting
  • Redis driver rewritten with Lua scripts: atomic claim, delayed and reserved sets, recovery of jobs from crashed workers; works with phpredis and Predis (Redis Object Cache)
  • Status page: runner switcher, crontab line and heartbeat for the daemon, WP-Cron / loopback rows show whether the selected runner uses them
  • Loopback check uses admin-ajax.php and no longer requests wp-cron.php
  • All known queues are listed, including empty ones
  • wp queue config [--driver=<driver>] [--runner=<runner>] [--store=<option|wp-config>]
  • New constants: WP_QUEUE_DRIVER, WP_QUEUE_RUNNER (WP_QUEUE_RUNTIME_MODE still works)