kill_current_script
kill_current_script($kill=true); - set the task schedule setting : force the current script to end if the next one starts.
The function accepts parameters as input:
$kill – activate (true) or deactivate (false) the setting
After testing, the function returns the result of its work to the script :
true – completed successfully
true – failed