Files
opensourcepos/app/Config/Jobs.php
objecttothisandClaude Sonnet 5 eae8db36a6 feat(jobs): add background job queue execution engine
Adds the queue_jobs, queue_jobs_failed, and job_throttles tables and wires
up BoundedQueueWorker (deadline-bounded queue draining, shared by the
JobRunner filter for web/auto mode and the manual "Process Jobs" UI) gated
by JobThrottleGate. Adds retry limit, retention, and auto-purge settings
to the Job Queue settings tab, and a manual per-queue processing UI on the
Utilities tab. Also adds a second-granularity throttle period and
BaseOsposJob as the shared base for core queue jobs.

This is issue #3833 Phase 2 — no real job types are queued yet.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-07 17:55:22 +04:00

21 lines
533 B
PHP

<?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
class Jobs extends BaseConfig
{
public string $mode = 'web'; // auto | web | manual
public int $webMaxSeconds = 5;
public int $taskMaxSeconds = 30;
public int $manualMaxSeconds = 30;
public int $failedRetentionDays = 30;
public int $retentionDays = 7;
public bool $autoPurge = true;
public int $retryLimit = 3;
/** Core queue names processed by BoundedQueueWorker. */
public array $coreQueues = ['default', 'imports', 'api'];
}