mirror of
https://github.com/itflow-org/itflow
synced 2026-08-05 07:07:14 +00:00
Fix Cron Schedule and new directory includes created inside cron for the cron lock
This commit is contained in:
@@ -17,7 +17,7 @@ if (php_sapi_name() !== 'cli') {
|
||||
|
||||
// Prevent overlapping runs of this script
|
||||
$cron_lock_script = __FILE__;
|
||||
require_once "../includes/cron_lock.php";
|
||||
require_once "includes/cron_lock.php";
|
||||
|
||||
// Autoload (Webklex & any composer deps)
|
||||
require_once "../libs/vendor/autoload.php";
|
||||
@@ -48,7 +48,7 @@ if ($config_ticket_email_parse == 0) {
|
||||
cronJobStop("Email Parser: Feature is not enabled - check Settings > Ticketing > Email-to-ticket parsing. See https://docs.itflow.org/ticket_email_parse -- Quitting..");
|
||||
}
|
||||
|
||||
// Overlapping runs are prevented by includes/cron_lock.php. This script used to keep a
|
||||
// Overlapping runs are prevented by cron/includes/cron_lock.php. This script used to keep a
|
||||
// lock file of its own alongside that one, which needed a five minute age heuristic to
|
||||
// recover from a killed run and could only end itself with exit() - fatal to a dispatched
|
||||
// job. flock covers the same ground and the kernel drops it however the process ends.
|
||||
|
||||
Reference in New Issue
Block a user