mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-11-08 23:43:32 -05:00
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>
21 lines
533 B
PHP
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'];
|
|
}
|