๐ v2023.3.0-beta.1 ๐
๐ New
Configuration example:
service:
schedule:run:
command: "bin/console schedule:run"
process_num: 1
exec_timeout: 0s
remain_after_exit: true
service_name_in_log: false
restart_sec: 60
user: www-data # <---------- [NEW]
group: www-data # <---------- [NEW]
- โ๏ธ Temporal plugin: Replay API support [SINCE PHP-SDK 2.6.0]: FR
- โ๏ธ RR core:
sdnotify
support: FR, (thanks @Kaspiman) - โ๏ธ HTTP response streaming support: : FR, (thanks @roxblnfk)
Worker.php example:
<?php
require __DIR__ . '/vendor/autoload.php';
use Spiral\RoadRunner;
ini_set('display_errors', 'stderr');
require __DIR__ . "/vendor/autoload.php";
$worker = RoadRunner\Worker::create();
$http = new RoadRunner\Http\HttpWorker($worker);
$read = static function (): Generator {
foreach (\file(__DIR__ . '/test.txt') as $line) {
try {
yield $line;
} catch (Spiral\RoadRunner\Http\Exception\StreamStoppedException) {
// Just stop sending data
return;
}
}
};
try {
while ($req = $http->waitRequest()) {
$http->respond(200, $read());
}
} catch (\Throwable $e) {
$worker->error($e->getMessage());
}
- โ๏ธ HTTP plugin: Support for the
103
Early Hints via streamed response: FR, (thanks @roxblnfk) - โ๏ธ RAW command support: Support for raw commands, which are not validated by RR and may contain spaces. Note that this feature is only supported via
.rr.yaml
configuration: FR, (thanks @nunomaduro)
Configuration:
version: "3"
server:
command: ["php", "../../php_test_files/client.php echo pipes"]
relay: "pipes"
relay_timeout: "20s"
version: "3"
server:
command:
- "php"
- "../../php_test_files/client.php echo pipes"
relay: "pipes"
relay_timeout: "20s"
First argument should be a command (executable) and the rest of the arguments are passed to the command as arguments.
- โ๏ธ JOBS plugin: Parallel pipelines start/stop/destroy initialization. If you have a much number of the pipelines, this feature should significantly reduce RR startup/shutdown time: FR, (thanks @Kaspiman)
๐ฉน Fixes
- ๐ RR Core: Actualize according to the docs
./rr jobs list/stop/resume
commands: PR, (thanks @gam6itko). - ๐ JOBS plugin: Correctly handle OTEL span on listener error: PR, (thanks @Kaspiman).
- ๐ RR tests: Fix tests failures on Darwin: PR, (thanks @shyim).
๐งน Chore:
- ๐งโ๐ญ Golang: Update Golang version to v1.21.
- ๐งโ๐ญ Dependencies: update project dependencies.
Special thanks for this beta-release to our awesome PHP team: @butschster, @roxblnfk, @wolfy-j and @msmakouz โค๏ธ