v3.0.0
New features
Updated Queue component.
- Updates
spiral/roadrunner-jobs
package up to 4.0 version - Removes Serializer Adapter. Now consumer always receives a task with string payload and then uses
spiral/serializer
component to deserialize it. - Pipelines section in config moves into root of queue config
return [
'default' => env('QUEUE_CONNECTION', 'roadrunner'),
'connections' => [
'in-memory' => [
'driver' => 'roadrunner',
'pipeline' => 'memory', // <======= Pipeline that will be used in connection
],
],
'defaultSerializer' => 'closure',
'pipelines' => [ // <=============== Pipelines section
'memory' => [
'connector' => new MemoryCreateInfo('local'),
'consume' => true,
],
],
];
-
Adds earlier declaration of pipelines with consuming.
- If there is a pipeline with
consume=true
declaration, it will be declared automatically during application bootstrapping. - Pipeline will be declared only on worker starting in Jobs mode.
- If there is a pipeline with
-
rr:jobs:consume
console command declares a pipeline if it wasn't declared and there is a declaration in config for it
Other changes
- Removed Broadcasting component by @butschster in #71
- Updated composer dependencies by @butschster in #77
- Psalm level 2
Full Changelog: 2.6.0...3.0.0