Code Monkey home page Code Monkey logo

Comments (4)

Tyrsson avatar Tyrsson commented on June 19, 2024

So basically we need a backlog UI that allows marking task in another queue that fast track them ahead of the currently scheduled items? Or maybe I'm missing something..

from smf.

jdarwood007 avatar jdarwood007 commented on June 19, 2024

The Send Mail queue function essentially forces the mail queue to send by ignoring limits and other protections (except for timeout handling). So it would act the same. Say there are 5000 items in the queue, instead of slowly pushing out a few items at a time (let's say 60 items a minute), it would take almost 90 minutes to send all of it, it would just tell it to send it all now. Server performance may be impacted (just as sending the mail queue can do).

Seeing the queue and knowing how much is backlogged, can help admins know that adjustments need to be made to keep up with the queue.

from smf.

Sesquipedalian avatar Sesquipedalian commented on June 19, 2024

It's a good idea, although it might need some refining. Specifically, trying to create an ability to flush the queue might not make a lot of sense. As I recall, TaskRunner already tries to complete as many tasks as it can in a single run before timing out. Trying to flush the queue wouldn't do anything more than the system already does.

We may also need some new database columns to count execution attempts and such.

from smf.

jdarwood007 avatar jdarwood007 commented on June 19, 2024

Well, we need that for the mail stuff as well, so we can dump mail that isn't sending. The hack I worked into 2.1 was to work around database columns by abusing the priority column.

There is some logic though that prevents us from sending too much. Even if something is in the queue, hitting cron.php won't send it, if it just did a little while ago, at least from my basic testing.

from smf.

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.