Code Monkey home page Code Monkey logo

craft-queuemanager's Introduction

Hi there ๐Ÿ‘‹

craft-queuemanager's People

Contributors

jalendport avatar lukeyouell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

craft-queuemanager's Issues

Jobs are resources in postgreSql leading to 'expects string' error exception

When using postgreSql the job column in the queue is of type bytea, resulting in jobs beeing resources not strings.

adding something like

if (is_array($result) && is_resource($result['job'])) {
    $result['job'] = stream_get_contents($result['job']);
}

in the foreach on line 39 in /src/services/QueueService.php will fix this.

Craft does the same thing internally in /src/queue/Queue.php:511

[FR] Email Notifications

Really useful plugin, it would be great if you could setup email notifications for failed tasks.

[FR] A way to run the queue from the CP?

Not sure if this is possible or not, but sometimes when a job is stuck, no matter how much I "retry" it, it will stay at "pending" unless I run ./craft queue/run in the command line. It would be nice if I didn't have to connect to the server in SSH, and instead run the queue directly from this plugin.

[FR] Move queue manager to Utilities tab

Nice plugin! I wish a simple version of this was included with Craft so troubleshooting some queue issues didn't require accessing the db directly. You nicely solve that!

I haven't looked into the architecture of the plugin too closely but one small thing (that is perhaps largely opinionated) that I think it would be nicer is if the Queue Manager appeared as a tab on the Utilities page. It feels too prominent to always be available in the main sidebar as the primary use is for outlier cases where the queue fails.

Docs on Utility Types here:
https://docs.craftcms.com/v3/extend/utility-types.html

Craft's own "track job progress" POST request shows up in the queue list

Any idea why we're seeing this within the queue list?

[22/Feb/2022:19:17:36 +0000] "POST /index.php?p=go/actions/queue/get-job-info&limit=50&dontExtendSession=1 HTTP/1.1" 400 61 "https://www.domain.com/go/settings/plugins" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36"

[FR] Add Progress field to job table

Really useful, it would be even more helpful it the progress database field would be included in the jobs overview table next to status / happened.

Would help to identify jobs that are technically still running, but somehow stuck.

Thanks.

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.