Files
api/services/nginx/app/cron/RunXLVaskModuleCron.php
T
Jeppe B 2a6a86c9c3 Resolve backend Qodana critical and high findings (#314)
Resolve recommended-profile Critical and High findings, retain narrow analyzer exceptions, and update the edge-broker WebSocket dependency to a non-vulnerable release.
2026-07-17 05:44:16 +02:00

30 lines
796 B
PHP

<?php
/**
* This script is used to run the XL Vask module's cron tasks.
* It is run as a cron job.
*
* index.php runs this script.
*/
// prevent direct access
use classes\xlvask;
if (!defined('WD')) {
exit;
}
$start = microtime(true);
// Load the XL Vask module
$xlvask = new xlvask;
try {
if ($xlvask->config->enabled->isTrue() && $xlvask->config->synchronization_enabled->isTrue()) {
$xlvask->getTasks()->runCronTasks();
// TODO: Add synchronization for usage logs and vehicles.
}
} catch (Exception $e) {
// This is automatically running, so we don't need to log the error
}
$end = microtime(true);
//$slack = new \classes\slack();
//$slack->send_message("The booking sync script has finished. It took " . round($end - $start, 2) . " seconds to run.");