Skip to content

Commit e289462

Browse files
added upgrade note
1 parent 2a5f895 commit e289462

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

UPGRADE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
UPGRADE
22
=======
33

4+
- [1.2.0](#1.2.0)
45
- [1.1.0](#1.1.0)
56
- [0.4.0](#0.4.0)
67

8+
### 1.2.0
9+
10+
In the database table `ta_task_executions` a new field was introduced. Run following
11+
command to update the table.
12+
13+
```bash
14+
bin/console doctrine:schema:update
15+
```
16+
717
### 1.1.0
818

919
In the database table `ta_tasks` a new field was introduced. Run following

src/Command/RunCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Symfony\Component\Console\Command\Command;
1515
use Symfony\Component\Console\Input\InputInterface;
1616
use Symfony\Component\Console\Output\OutputInterface;
17-
use Task\Runner\ExitException;
1817
use Task\Runner\TaskRunnerInterface;
1918
use Task\Scheduler\TaskSchedulerInterface;
2019

src/Executor/SeparateProcessExecutor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function execute(TaskExecutionInterface $execution)
6161
$attempts = $this->getMaximumAttempts($execution->getHandlerClass());
6262
$lastException = null;
6363

64-
for ($attempt = 0; $attempt < $attempts; $attempt++) {
64+
for ($attempt = 0; $attempt < $attempts; ++$attempt) {
6565
try {
6666
return $this->handle($execution);
6767
} catch (FailedException $exception) {

tests/Unit/Executor/SeparateProcessExecutorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public function testExecuteRetryException()
173173
$attempts = 1;
174174
$this->execution->incrementAttempts()->will(
175175
function () use (&$attempts) {
176-
$attempts++;
176+
++$attempts;
177177

178178
return $this;
179179
}

0 commit comments

Comments
 (0)