Code Monkey home page Code Monkey logo

Comments (3)

mnapoli avatar mnapoli commented on August 29, 2024 1

💯 would happily merge a pull request, I'm trying to keep up with everything lately so I won't have time to jump on it myself.

from laravel-bridge.

mnapoli avatar mnapoli commented on August 29, 2024

Hey Aaron,

In your example, all 3 workers look identical:

    jobs:
        type: queue
        maxConcurrency: 25
        worker:
            handler: Bref\LaravelBridge\Queue\QueueHandler
            runtime: php-82
            timeout: 300

    jobs-high:
        type: queue
        maxConcurrency: 50
        worker:
            handler: Bref\LaravelBridge\Queue\QueueHandler
            runtime: php-82
            timeout: 300

    jobs-low:
        type: queue
        maxConcurrency: 25
        worker:
            handler: Bref\LaravelBridge\Queue\QueueHandler
            runtime: php-82
            timeout: 300

I would expect all 3 of them to process the max queue.

Here is what I would try instead:

provider:
    ...
    environment:
        # default queue
        QUEUE_CONNECTION: sqs
        SQS_QUEUE: ${construct:jobs.queueUrl}

constructs:

  jobs:
    type: queue
    worker:
      handler: Bref\LaravelBridge\Queue\QueueHandler
      runtime: php-81

  emails:
    type: queue
    worker:
      handler: Bref\LaravelBridge\Queue\QueueHandler
      runtime: php-81
      environment:
        # Override the queue to process
        QUEUE_CONNECTION: emails

does that make sense?

from laravel-bridge.

ArondeParon avatar ArondeParon commented on August 29, 2024

Thanks Mathieu, this never registered in my head.

Will implement this somewhere next week, but this should definitely do the trick. Would perhaps make a nice addition to the documentation? It's definitely not uncommon to use multiple queues.

from laravel-bridge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.