Comments (10)
looks like you have not registered the RetryProcessor
from swarrotbundle.
I have RetryProcessor registered.
processors_stack:
signal_handler: 'Swarrot\Processor\SignalHandler\SignalHandlerProcessor'
ack: 'Swarrot\Processor\Ack\AckProcessor'
max_messages: 'Swarrot\Processor\MaxMessages\MaxMessagesProcessor'
retry: 'Swarrot\Processor\Retry\RetryProcessor'
exception_catcher: 'Swarrot\Processor\ExceptionCatcher\ExceptionCatcherProcessor'
max_execution_time: 'Swarrot\Processor\MaxExecutionTime\MaxExecutionTimeProcessor'
from swarrotbundle.
Can you provide the output of this command app/console debug:config swarrot
?
Thanks.
from swarrotbundle.
swarrot:
provider: pecl
default_connection: rabbitmq
default_command: swarrot.command.base
connections:
rabbitmq:
[removed]
processors_stack:
signal_handler: Swarrot\Processor\SignalHandler\SignalHandlerProcessor
ack: Swarrot\Processor\Ack\AckProcessor
max_messages: Swarrot\Processor\MaxMessages\MaxMessagesProcessor
retry: Swarrot\Processor\Retry\RetryProcessor
exception_catcher: Swarrot\Processor\ExceptionCatcher\ExceptionCatcherProcessor
max_execution_time: Swarrot\Processor\MaxExecutionTime\MaxExecutionTimeProcessor
consumers:
inis:
processor: inis.processor.inis
extras:
poll_interval: 500000
retry_attempts: 3
retry_key_pattern: retry_%%attempt%%
middleware_stack:
-
configurator: swarrot.processor.ack
first_arg_class: Swarrot\Processor\Ack\AckProcessor
extras:
poll_interval: 500000
retry_attempts: 3
retry_key_pattern: retry_%%attempt%%
-
configurator: swarrot.processor.max_execution_time
first_arg_class: Swarrot\Processor\MaxExecutionTime\MaxExecutionTimeProcessor
extras:
poll_interval: 500000
retry_attempts: 3
retry_key_pattern: retry_%%attempt%%
-
configurator: swarrot.processor.max_messages
first_arg_class: Swarrot\Processor\MaxMessages\MaxMessagesProcessor
extras:
poll_interval: 500000
retry_attempts: 3
retry_key_pattern: retry_%%attempt%%
-
configurator: swarrot.processor.exception_catcher
first_arg_class: Swarrot\Processor\ExceptionCatcher\ExceptionCatcherProcessor
extras:
poll_interval: 500000
retry_attempts: 3
retry_key_pattern: retry_%%attempt%%
-
configurator: swarrot.processor.retry
first_arg_class: Swarrot\Processor\Retry\RetryProcessor
extras:
poll_interval: 500000
retry_attempts: 3
retry_key_pattern: retry_%%attempt%%
-
configurator: swarrot.processor.signal_handler
first_arg_class: Swarrot\Processor\SignalHandler\SignalHandlerProcessor
extras:
poll_interval: 500000
retry_attempts: 3
retry_key_pattern: retry_%%attempt%%
command: null
connection: null
queue: null
messages_types:
inis_publisher:
exchange: inis_send
routing_key: inis_send
connection: null
extras: { }
logger: logger
enable_collector: true
from swarrotbundle.
Can you also copy your config please?
I don't understand why you have extra config at swarrot.consumers.inis.extras
, this configuration should be present only for the retry processor.
Just to be sure, can you also provide the output of this command: app/console debug:container --parameter=swarrot.command.base.class
?
from swarrotbundle.
Swarrot\SwarrotBundle\Command\SwarrotCommand
from swarrotbundle.
Extra config comes from my config.yml:
consumers:
inis:
processor: inis.processor.inis
extras:
poll_interval: 500000
retry_attempts: 3
retry_key_pattern: 'retry_%%attempt%%'
from swarrotbundle.
Whole config looks like this:
swarrot:
provider: pecl # pecl or amqp_lib
default_connection: rabbitmq
default_command: swarrot.command.base # Swarrot\SwarrotBundle\Command\SwarrotCommand
connections:
rabbitmq:
host: "%rabbitmq_host%"
port: "%rabbitmq_port%"
login: "%rabbitmq_user%"
password: "%rabbitmq_password%"
vhost: '/'
processors_stack:
signal_handler: 'Swarrot\Processor\SignalHandler\SignalHandlerProcessor'
ack: 'Swarrot\Processor\Ack\AckProcessor'
max_messages: 'Swarrot\Processor\MaxMessages\MaxMessagesProcessor'
retry: 'Swarrot\Processor\Retry\RetryProcessor'
exception_catcher: 'Swarrot\Processor\ExceptionCatcher\ExceptionCatcherProcessor'
max_execution_time: 'Swarrot\Processor\MaxExecutionTime\MaxExecutionTimeProcessor'
consumers:
inis:
processor: inis.processor.inis
extras:
poll_interval: 500000
retry_attempts: 3
retry_key_pattern: 'retry_%%attempt%%'
messages_types:
inis_publisher:
exchange: inis_send
routing_key: inis_send
from swarrotbundle.
I have rewritten my config, now it works fine:
swarrot:
provider: pecl # pecl or amqp_lib
default_connection: rabbitmq
default_command: swarrot.command.base # Swarrot\SwarrotBundle\Command\SwarrotCommand
connections:
rabbitmq:
host: "%rabbitmq_host%"
port: "%rabbitmq_port%"
login: "%rabbitmq_user%"
password: "%rabbitmq_password%"
vhost: '/'
consumers:
inis:
processor: inis.processor.inis
extras:
poll_interval: 500000
middleware_stack:
- configurator: swarrot.processor.signal_handler
- configurator: swarrot.processor.max_messages
- configurator: swarrot.processor.exception_catcher
- configurator: swarrot.processor.max_execution_time
- configurator: swarrot.processor.ack
-
configurator: swarrot.processor.retry
extras:
retry_attempts: 3
retry_key_pattern: 'retry_%%attempt%%'
messages_types:
inis_publisher:
exchange: inis_send
routing_key: inis_send
I see consumers are 'invisible' as they jump in only when there are messages in queue, right? How can I run a consumer with more debug info, like when it consumes a message? Even with -vvv
it outputs nothing.
from swarrotbundle.
Yes, your config is way better. :)
Regarding log, it's probably linked to the config of your logger
service which is used by default.
Did you configured your logger to have the console output?
You should have something like this in your config_dev
file:
monolog:
handlers:
console:
type: console
from swarrotbundle.
Related Issues (20)
- Flex recipes ? HOT 2
- Problem when type hinting method process in PHP7 HOT 5
- dot in messages-types are lost in the command help HOT 1
- Why the message type is not used as the queue name by default HOT 3
- Symfony 4.3 deprecations HOT 3
- Symfony Messenger and Swarrot compatibility HOT 1
- Reset application after each consummed message HOT 1
- Install Fail HOT 2
- Allow users to attach aliases to Swarrot commands HOT 2
- Upgrade to 1.8 on Symfony 3.4 HOT 7
- make queue declare before consume queue HOT 1
- Make Swarrot commands lazy HOT 2
- Consumer on multiple queues HOT 3
- Port cannot be configured by env var HOT 2
- Upgrade Doctrine dependencies HOT 4
- AMQPS configuration
- Multiple hosts support HOT 2
- Symfony 6 compatibility HOT 1
- CI needs to migrate away from Travis
- Non-existed services HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swarrotbundle.