Fixed Cron mail queue and email parser missing '

This commit is contained in:
johnnyq
2023-10-27 13:05:29 -04:00
parent f9d3d3b2f9
commit 3c8a026b7c
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ if (file_exists($lock_file_path)) {
unlink($lock_file_path);
mysqli_query($mysqli, "INSERT INTO logs SET log_type = 'Cron-Email-Parser', log_action = 'Delete', log_description = 'Cron Email Parser detected a lock file was present but was over 10 minutes old so it removed it'");
} else {
mysqli_query($mysqli, "INSERT INTO logs SET log_type = 'Cron-Email-Parser', log_action = 'Locked', log_description = 'Cron Email Parser attempted to execute but was already executing, so instead it terminated.");
mysqli_query($mysqli, "INSERT INTO logs SET log_type = 'Cron-Email-Parser', log_action = 'Locked', log_description = 'Cron Email Parser attempted to execute but was already executing, so instead it terminated.'");
exit("Script is already running. Exiting.");
}
}