|
@@ 87-94 (lines=8) @@
|
| 84 |
|
* @param AbstractTask $task |
| 85 |
|
* @throws RuntimeException |
| 86 |
|
*/ |
| 87 |
|
public function markRunningTaskAsAborted(AbstractTask $task) |
| 88 |
|
{ |
| 89 |
|
$key = $this->getValidRunningTaskKey($task); |
| 90 |
|
|
| 91 |
|
$this->abortedTasks[$key] = $this->runningTasks[$key]; |
| 92 |
|
$this->abortedTasks[$key]->markAsAborted(); |
| 93 |
|
unset($this->runningTasks[$key]); |
| 94 |
|
} |
| 95 |
|
|
| 96 |
|
/** |
| 97 |
|
* @param AbstractTask $task |
|
@@ 100-107 (lines=8) @@
|
| 97 |
|
* @param AbstractTask $task |
| 98 |
|
* @throws RuntimeException |
| 99 |
|
*/ |
| 100 |
|
public function markRunningTaskAsFinished(AbstractTask $task) |
| 101 |
|
{ |
| 102 |
|
$key = $this->getValidRunningTaskKey($task); |
| 103 |
|
|
| 104 |
|
$this->finishedTasks[$key] = $this->runningTasks[$key]; |
| 105 |
|
$this->finishedTasks[$key]->markAsFinished(); |
| 106 |
|
unset($this->runningTasks[$key]); |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
/** |
| 110 |
|
* @param AbstractTask $task |