Time Engine je generični časovni motor za CM PRO.
Time Engine izvaja načrtovane CM PRO jobe: expiry checks, payment lifecycle, heartbeat triggers in prihodnje specializirane motorje, kot sta Price Engine in analytics snapshots. Cron, CLI in admin gumbi samo sprožijo isti scheduler core.
Current status
20260722213141-7700fb4e
Every 10 min
2026-07-22T21:30:01+02:00
Manual actions
Manual runs use the same scheduler core as cron. They do not bypass job safety settings.
Job groups
Last: 2026-07-22T21:30:01+02:00
Last summary
{
"checked": 0,
"expired": 0,
"awaiting_payment": null
}
Last: 2026-07-22T21:31:42+02:00
Last summary
{
"checked": 8,
"expired": null,
"awaiting_payment": 1
}
Trigger Layer / Heartbeat
Admin page-load heartbeat calls cm_te_maybe_wake('admin_heartbeat'). It is throttled, lock-protected and best-effort.
20260722213141-7700fb4e
throttled · 197 sec
throttled
Raw heartbeat result
{
"ok": true,
"engine": "CM PRO Time Engine",
"helper": "cm_te_maybe_wake",
"version": "0.4a",
"trigger": "admin_heartbeat",
"now": "2026-07-22T21:34:58+02:00",
"settings_path": "/var/www/html/app_pro/common/data/json/scheduler/settings.json",
"state_path": "/var/www/html/app_pro/common/data/json/scheduler/heartbeat_state.json",
"lock_path": "/var/www/html/app_pro/common/data/json/scheduler/heartbeat.lock",
"config": {
"enabled": true,
"admin_heartbeat_enabled": true,
"public_heartbeat_enabled": true,
"min_interval_seconds": 900,
"force": false
},
"skipped": true,
"reason": "throttled",
"last_run_at": "2026-07-22T21:31:41+02:00",
"elapsed_seconds": 197
}
Engine & job safety settings
These settings are stored in common/data/json/scheduler/settings.json. They separate core trigger behavior from individual job safety controls.
Cron / CLI diagnostics
Web UI does not edit system crontab directly. It shows the safe CLI commands. The installer writes only the managed block between CM PRO markers.
Install / update cron:
php /var/www/html/app_pro/scripts/scheduler_install_cron.php --install
Check cron installer status:
php /var/www/html/app_pro/scripts/scheduler_install_cron.php --status
Remove managed cron block:
php /var/www/html/app_pro/scripts/scheduler_install_cron.php --remove
Manual CLI run:
php /var/www/html/app_pro/scripts/scheduler_run.php
Recent runs
2026-07-22T21:31:41+02:00
2026-07-22T21:30:01+02:00
2026-07-22T21:20:01+02:00
2026-07-22T21:10:01+02:00
Diagnostics / raw API output
Manual run and refresh responses are shown here. This is intentionally below the operational dashboard.
{}