Skip to content

gen-queue 0.1.0

Latest

Choose a tag to compare

@makriman makriman released this 15 Nov 09:35
2da2b40

Added

  • Job types registered on gen_queue_register_types, with defaults for
    attempts, backoff, timeout, priority, TTL, group, resource key, cost
    estimate, a per-type daily cap and spend-meter identity.
  • Enqueue with idempotency keys (return or requeue on conflict),
    priority, delayed start, expiry, and gen_queue_enqueue_many() in
    batches of 500.
  • Runners on WP-Cron and WP-CLI sharing one code path, worker slots,
    atomic row claims, attempts counted before the handler runs, and
    leases with reclaim of dead workers.
  • A daily cap that defaults to unset (nothing runs), reservations for
    running jobs, a per-type cap, a fresh read of the switch, pause list,
    cap and spend before every job, and a global kill switch.
  • Retryable, permanent, account and cancel outcomes; full-jitter backoff;
    per-resource cooldowns; account holds per group.
  • Per-attempt cost records in nanos, gen_queue_cost_recorded, and the
    optional spend-meter integration (spend_meter_pre_spend,
    spend_meter_record).
  • Tools > Generation queue status page, admin notices, wp gen-queue
    commands with distinct exit codes for disabled and capped runs.
  • Schema verification after install, retention purge, uninstall cleanup,
    and a personal data exporter and eraser.

Install: composer require indianopinion/gen-queue