mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-09-23 19:25:06 -04:00
Introduce infrastructure for running scheduled jobs safely and without a database-backed settings dependency. - Add BoundedTaskRunner (app/Filters/BoundedTaskRunner.php), a TaskRunner subclass that stops launching new tasks once a deadline passes, since CI4's TaskRunner has no hook for this between tasks. Loop logic is duplicated from vendor because it cannot be reused directly; a running task cannot be preempted mid-execution. - Add Config/Settings.php overriding handlers to ['array'], since OSPOS has no ospos_settings table and keeps config in ospos_app_config instead. - Add writable/jobs/index.html to block directory listing, matching existing writable/ subfolder convention. - Ignore writable/jobs/*.lock in .gitignore to avoid committing runtime lock files from the job runner. Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com>
16 lines
382 B
PHP
16 lines
382 B
PHP
<?php
|
|
|
|
namespace Config;
|
|
|
|
use CodeIgniter\Settings\Config\Settings as BaseSettings;
|
|
|
|
class Settings extends BaseSettings
|
|
{
|
|
/**
|
|
* OSPOS has no ospos_settings table and stores its own configuration
|
|
* in ospos_app_config, so fall back to reading values directly from
|
|
* config classes instead of a database-backed handler.
|
|
*/
|
|
public $handlers = ['array'];
|
|
}
|