spiral/roadrunner-worker
PHP worker library for running apps on RoadRunner with the Spiral ecosystem. Provides a Worker API to handle incoming requests/jobs and communicate with the RoadRunner server, enabling high-performance, long-running PHP processes for HTTP and background tasks.
Full Changelog: https://github.com/roadrunner-php/worker/compare/v3.6.1...v3.6.2
Full Changelog: https://github.com/roadrunner-php/worker/compare/v3.6.0...v3.6.1
Spiral\RoadRunner\Environment class by @Kaspiman in https://github.com/roadrunner-php/worker/pull/37Full Changelog: https://github.com/roadrunner-php/worker/compare/v3.5.0...v3.6.0
codec parameter to the worker's respond method by @msmakouz in https://github.com/roadrunner-php/worker/pull/36Full Changelog: https://github.com/roadrunner-php/worker/compare/v3.4.0...v3.5.0
Spiral\RoadRunner\WorkerPool class. These methods allow retrieval of information about the plugin workers in the pool and their count by @FluffyDiscord and @msmakouz in https://github.com/roadrunner-php/worker/pull/34, https://github.com/roadrunner-php/worker/pull/35Full Changelog: https://github.com/roadrunner-php/worker/compare/3.3.0...v3.4.0
Full Changelog: https://github.com/roadrunner-php/worker/compare/3.2.0...3.3.0
Full Changelog: https://github.com/roadrunner-php/worker/compare/3.1.0...3.2.0
Full Changelog: https://github.com/roadrunner-php/worker/compare/3.0.0...3.1.0
spiral/roadrunner:^2023Spiral\RoadRunner\WorkerInterface ChangesIt has been updated with two new methods:
hasPayload(string $class = null): boolgetPayload(string $class = null): ?PayloadIf your code uses Spiral\RoadRunner\WorkerInterface, you will need to update it to include these new methods.
Spiral\RoadRunne\Worker ChangesIt has been updated to include a new constructor argument, allowing for a custom logger to be set.
The constructor signature is now:
public function __construct(
private readonly RelayInterface $relay,
bool $interceptSideEffects = true,
private readonly LoggerInterface $logger = new Logger(), // <====== new argument
) {
...
}
Spiral\RoadRunner\Payload ChangesIt has been marked as internal, which means that it can no longer be used directly by user code.
Additionally, the body and header properties have been marked as readonly, which means that they cannot be modified once set.
Spiral\RoadRunner\Exception\RoadRunnerException ChangesIt has been marked as final, which means that it can no longer be extended by user code. If your code extends it, you will need to update it to handle exceptions in a different way.
Please note that these changes may require updates to your existing code, so be sure to review the breaking changes before upgrading to version 3.0.0.
Full Changelog: https://github.com/roadrunner-php/worker/compare/v2.3.0...3.0.0
Full Changelog: https://github.com/spiral/roadrunner-worker/compare/v2.2.0...v2.3.0
Full Changelog: https://github.com/spiral/roadrunner-worker/compare/v2.1.5...v2.2.0
Mode::MODE_JOBS environment supportRR_MODE environment variable enumHow can I help you explore Laravel packages today?