Johannes Rauh
61f2586e7a
Remove dead FinishedProcessState catch handler
...
`FinishedProcessState` does not implement `\Throwable`, so `catch(function
(FinishedProcessState $state))` can never trigger in react/promise v3 where
rejection reasons must be `\Throwable`.
This is safe to remove because `IcingaCli` already rejects with an `Exception`
wrapping the process state reason:
```php
$deferred->reject(new Exception($state->getReason()));
```
The existing `catch(\Exception $e)` handler already covers this.
Ref: https://github.com/reactphp/promise/releases/tag/v3.0.0
2026-04-30 15:11:16 +02:00
Johannes Rauh
f3bddf215d
Fix type annotation and remove unused type imports
...
Update `@var` annotation to use `PromiseInterface[]`. Remove now unused
`Promise` import from JobRunner.
2026-04-30 15:11:16 +02:00
Johannes Rauh
d4a3cca7da
Replace otherwise() with catch() and always() with finally()
...
These methods have been renamed in v3.
Ref: https://github.com/reactphp/promise/releases/tag/v3.0.0
2026-04-30 15:11:16 +02:00
Johannes Rauh
f87c1e1e7c
Pass null to resolve() and Deferred::resolve()
...
Both now require an explicit value argument.
Ref: https://github.com/reactphp/promise/releases/tag/v3.0.0
2026-04-30 15:11:15 +02:00
Johannes Rauh
2c5c565606
Replace ExtendedPromiseInterface with PromiseInterface
...
`PromiseInterface` now includes the functionality `ExtendedPromiseInterface`.
Additionally use imports instead of FQN.
Ref: https://github.com/reactphp/promise/releases/tag/v3.0.0
2026-04-30 15:11:15 +02:00
Eric Lippmann
00985429c5
Fix PSR-12 violations
2024-10-22 14:31:14 +02:00
Thomas Gelf
1770471d13
JobRunner: just a whitespace
2020-10-26 07:25:50 +01:00
Thomas Gelf
2b0c9f9dd2
Daemon: prepare for future react/promise versions
...
fixes #2137
2020-06-06 23:16:47 +02:00
Thomas Gelf
4ba2c21ce9
JobRunner: use modified logproxy
2019-09-29 08:59:23 +02:00
Thomas Gelf
79243f660a
JobRunner: unify log messages
2019-09-29 08:53:04 +02:00
Thomas Gelf
4ee3ef2fd9
Daemon: new implementation
2019-09-25 12:10:08 +02:00