Commit Graph
1 Commits
Author SHA1 Message Date
objecttothis f98e2c554a feat(jobs): drain queues via single auto-mode scheduler, add per-queue logging
- Simplify 'auto' mode to run only `spark tasks:run` on cron/Task
  Scheduler; new `jobs_queue_worker` task (app/Config/Tasks.php) now
  drains core queues in-process using BoundedQueueWorker, so the
  separate `queue:work` cron entry/Task Scheduler task and Docker
  compose/sidecar commands are no longer needed (INSTALL.md).
- Extend BoundedQueueWorker to cover 'auto' mode alongside 'web' and
  'manual', removing the old single-mode restriction in its docblock.
- Add job_log() helper (app/Helpers/job_helper.php) and
  JobsFileHandler (app/Logging/JobsFileHandler.php) to write job
  activity to per-queue log files (jobsLog-{queue}-{date}.log)
  instead of the shared application log; register 'job' helper in
  app/Config/Autoload.php.
- Route job-related log_message() calls in BoundedQueueWorker,
  CustomerCsvRowProcessor, and ItemCsvRowProcessor to job_log(),
  and add extra per-row import logging (item id/name/barcode) for
  easier troubleshooting of CSV imports.

Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com>
2026-09-29 15:32:59 +04:00