Code Monkey home page Code Monkey logo

Comments (3)

ostark avatar ostark commented on June 9, 2024

Sorry for the late reply.

In my experience, running multiple concurrent queue workers (craft queue/run) with Craft's database queue CAN lead to deadlocks.

I'd say, you can safely use Async Queue on multiple HTTP frontends as long as you set ASYNC_QUEUE_CONCURRENCY to 1.

First question: is this cron necessary?

Only if someone schedules a job with a delay

Second: what will happen when my app is scaled?

In theory, it does not matter how many instances you use. The "locking" does not rely on the local file system, but on the database, which means you can not use Redis.

If you expect a serious amount of queue jobs, better use a supervisored queue runner and Redis.

from craft-async-queue.

nickdunn avatar nickdunn commented on June 9, 2024

Great, thanks for the feedback! I have since changed ASYNC_QUEUE_CONCURRENCY to 1 which I think has reduced deadlocks (but not fully) and we seem to be running two app instances OK.

I do find that sometimes the queue is stuck and the only way seems to be running the Async Queue Test utility that kicks it back into processing again. I'm not sure why this happens and it's why I was thinking of running queue/run periodically via a cron. Have you encountered this before?

from craft-async-queue.

ostark avatar ostark commented on June 9, 2024

I'm not a "user", but from time to time users experience stucking queue messages.
That's probably not an issue with this plugin, but with Craft/Yii, as the plugin simply runs craft queue/run.

from craft-async-queue.

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.