jalendport / craft-queuemanager Goto Github PK
View Code? Open in Web Editor NEWQueue manager for Craft CMS
License: MIT License
Queue manager for Craft CMS
License: MIT License
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
Really useful plugin, it would be great if you could setup email notifications for failed tasks.
Will this be upgraded to work with Craft 4?
It looks like the queue items don't appear when using the craft Redis queue. Am I missing something? Or is this not supported yet?
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.
I need to have notifications via email or something for the failed jobs, is that possible?
If yes then what's the process?
Appreciate the response.
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
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"
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.