Added extra memory reportings (heap, stack), stop tasks faster, added extra timeouts fro ServerKiller

This commit is contained in:
Shoghi Cervantes
2015-06-13 15:37:02 +02:00
parent 2ac27bd382
commit 33e312c7d0
9 changed files with 61 additions and 8 deletions

View File

@ -122,6 +122,7 @@ class AsyncPool{
public function removeTasks(){
do{
foreach($this->tasks as $task){
$task->cancelRun();
$this->removeTask($task);
}
@ -144,7 +145,9 @@ class AsyncPool{
foreach($this->tasks as $task){
if($task->isGarbage() and !$task->isRunning()){
$task->onCompletion($this->server);
if(!$task->hasCancelledRun()){
$task->onCompletion($this->server);
}
$this->removeTask($task);
}elseif($task->isTerminated()){