Skip to content

v3.0.0

Compare
Choose a tag to compare
@butschster butschster released this 14 Apr 15:20
· 42 commits to 3.x since this release
dbb7f42

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.
  • rr:jobs:consume console command declares a pipeline if it wasn't declared and there is a declaration in config for it

Other changes

Full Changelog: 2.6.0...3.0.0