Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --time-limit doesn't work for enqueue sqs #41

Open
Spawnrad opened this issue Dec 14, 2018 · 3 comments
Open

Add --time-limit doesn't work for enqueue sqs #41

Spawnrad opened this issue Dec 14, 2018 · 3 comments

Comments

@Spawnrad
Copy link

Hi,

When i use enqueue sqs the --time-limit doesn't work but it work when i use amqp.

php bin/console messenger:consume-messages feed --time-limit=10

Here my configuration

        "enqueue/messenger-adapter": "^0.1.2",
        "enqueue/sqs": "^0.8.41",
framework:
    messenger:
        default_bus: app.messenger.command_bus
        transports:
            feed: "%env(ENQUEUE_DSN)%?topic[name]=feed&queue[name]=feed"

       routing:
            App\Message\FeedMessage: 'feed'
        buses:
            app.messenger.command_bus:
                middleware:
                    - messenger.middleware.validation
                    - App\Middleware\RetryQueueMiddleware
            app.messenger.retry_bus: ~


enqueue:
    client: ~
    transport:
        default: 'sqs'
        sqs:
            key: "%env(AWS_KEY)%"
            secret: "%env(AWS_SECRET)%"
            region: "%env(AWS_REGION)%"
###> enqueue/sqs ###
ENQUEUE_DSN=enqueue://default
###< enqueue/sqs ###

Thanks for your help.

@Spawnrad
Copy link
Author

Spawnrad commented Dec 14, 2018

Oh, i saw the changes : #10

So if i don't get any messages the timeout is not checked.

But if i receive a lot of messages and my uptime is superior of my timeout, he stop instantly. Is it normal?

@weaverryan
Copy link
Collaborator

Are you still having issues @Spawnrad?

@Spawnrad
Copy link
Author

@weaverryan I'm going to check if i still have the issues.

I need first upgrade my application to symfony 4.2 to have the last update.

Thank for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants