Skip to content

Commit

Permalink
Fix problem with initialization roadrunner queue pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
butschster committed May 31, 2023
1 parent 59b01d3 commit d6d0ef5
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 69 deletions.
13 changes: 7 additions & 6 deletions centrifugo/app/config/queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@
// 'rating-queue' => 'sync',
],

'pipelines' => [
'local' => [
'connector' => new MemoryCreateInfo('local'),
'consume' => true,
],
],

/**
* Queue connections
* Drivers: "sync", "roadrunner"
Expand All @@ -35,12 +42,6 @@
'roadrunner' => [
'driver' => 'roadrunner',
'default' => 'local',
'pipelines' => [
'local' => [
'connector' => new MemoryCreateInfo('local'),
'consume' => true,
],
],
],
],

Expand Down
13 changes: 7 additions & 6 deletions cinema/app/config/queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@
// 'rating-queue' => 'sync',
],

'pipelines' => [
'local' => [
'connector' => new MemoryCreateInfo('local'),
'consume' => true,
],
],

/**
* Queue connections
* Drivers: "sync", "roadrunner"
Expand All @@ -35,12 +42,6 @@
'roadrunner' => [
'driver' => 'roadrunner',
'default' => 'local',
'pipelines' => [
'local' => [
'connector' => new MemoryCreateInfo('local'),
'consume' => true,
],
],
],
],

Expand Down
13 changes: 7 additions & 6 deletions payment/app/config/queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@
// 'rating-queue' => 'sync',
],

'pipelines' => [
'local' => [
'connector' => new MemoryCreateInfo('local'),
'consume' => true,
],
],

/**
* Queue connections
* Drivers: "sync", "roadrunner"
Expand All @@ -35,12 +42,6 @@
'roadrunner' => [
'driver' => 'roadrunner',
'default' => 'local',
'pipelines' => [
'local' => [
'connector' => new MemoryCreateInfo('local'),
'consume' => true,
],
],
],
],

Expand Down
32 changes: 8 additions & 24 deletions users/app/config/queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@
// 'rating-queue' => 'sync',
],


'pipelines' => [
'memory' => [
'connector' => new MemoryCreateInfo('local'),
'consume' => true,
],
],

/**
* Queue connections
* Drivers: "sync", "roadrunner"
Expand All @@ -35,30 +43,6 @@
'roadrunner' => [
'driver' => 'roadrunner',
'default' => 'memory',
'pipelines' => [
'memory' => [
'connector' => new MemoryCreateInfo('local'),
// Run consumer for this pipeline on startup (by default)
// You can pause consumer for this pipeline via console command
// php app.php queue:pause local
'consume' => true,
],
// 'amqp' => [
// 'connector' => new AMQPCreateInfo('bus', ...),
// // Don't consume jobs for this pipeline on start
// // You can run consumer for this pipeline via console command
// // php app.php queue:resume local
// 'consume' => false
// ],
//
// 'beanstalk' => [
// 'connector' => new BeanstalkCreateInfo('bus', ...),
// ],
//
// 'sqs' => [
// 'connector' => new SQSCreateInfo('amazon', ...),
// ],
],
],
],

Expand Down
38 changes: 11 additions & 27 deletions web/app/config/queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

use Spiral\Queue\Driver\SyncDriver;
use Spiral\RoadRunner\Jobs\Queue\MemoryCreateInfo;
use Spiral\RoadRunner\Jobs\Queue\AMQPCreateInfo;
use Spiral\RoadRunner\Jobs\Queue\BeanstalkCreateInfo;
use Spiral\RoadRunner\Jobs\Queue\SQSCreateInfo;
use Spiral\RoadRunnerBridge\Queue\Queue;

return [
Expand All @@ -23,6 +20,17 @@
// 'rating-queue' => 'sync',
],


'pipelines' => [
'memory' => [
'connector' => new MemoryCreateInfo('local'),
// Run consumer for this pipeline on startup (by default)
// You can pause consumer for this pipeline via console command
// php app.php queue:pause local
'consume' => true,
],
],

/**
* Queue connections
* Drivers: "sync", "roadrunner"
Expand All @@ -35,30 +43,6 @@
'roadrunner' => [
'driver' => 'roadrunner',
'default' => 'memory',
'pipelines' => [
'memory' => [
'connector' => new MemoryCreateInfo('local'),
// Run consumer for this pipeline on startup (by default)
// You can pause consumer for this pipeline via console command
// php app.php queue:pause local
'consume' => true,
],
// 'amqp' => [
// 'connector' => new AMQPCreateInfo('bus', ...),
// // Don't consume jobs for this pipeline on start
// // You can run consumer for this pipeline via console command
// // php app.php queue:resume local
// 'consume' => false
// ],
//
// 'beanstalk' => [
// 'connector' => new BeanstalkCreateInfo('bus', ...),
// ],
//
// 'sqs' => [
// 'connector' => new SQSCreateInfo('amazon', ...),
// ],
],
],
],

Expand Down

0 comments on commit d6d0ef5

Please sign in to comment.