function description: the project needs some scheduled tasks to be executed regularly, write a file, create an A file, configure the execution time of each PHP task file, etc., and then the server adds a scheduled task to call A file,
question: if one of the files has a fatal error and stops execution, it will cause subsequent files to stop running. Is there a way to judge whether the task file introduced is successful, for example, file 500 error, etc. When there is an error, I write it into the error log and try the try method, which has no effect. What ideas do the gods have?
/ execute the file
if($is_load && is_file($value["url"])){
echo ":" . $value["url"];
$time_arr[$value["k"]] = 0;
try {
include_once "./".$value["url"];
} catch (Exception $exc) {
echo $exc->getTraceAsString();
}
log_tao(":". $value["url"], 0);
}