Questions tagged [queue]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
40 views

Specific emails failing in queue

I have craft 3.7.11 with commerce 3.4.2 installed. The majority of site emails send correctly, but every few days, one order status change email fails. The prior emails for these orders send correctly,...
1
vote
2answers
39 views

What server settings would be responsible to debug "The process has been signaled with signal 9" errors?

We're running Craft in an AWS environment that is configured using CentOS 7, Apache 2.4.x, PHP 7.4.x, PHP-FPM and we've noticed many of our queued tasks fail (sometimes only 8-10 minutes into the ...
1
vote
1answer
42 views

Parse variable to new queue job

Is there a way to parse a variable to a queue job? I want to re-send some Craft commerce emails via a cron job, so have created a console controller for the cron job to run a command against. This ...
1
vote
1answer
43 views

Server down (timeout) when optimize bundle of image (Image Optimize Plugin)

I try to use the Image Optimize plugin to optimize the image with default Craft Transform. There are lots of images to be optimized at the same time, I keep having the issue of server down. Here is ...
0
votes
0answers
36 views

Resend commerce email

We have a site that had a feature/plugin created that can handle payment deposits as well as full payments for events. We're wanting to create a job (like a CRON Job) or process that once a week goes ...
2
votes
1answer
50 views

Force craft to do another job (queue) and pause the current one

I'm currently working on a plug-in for Craft. I have to work with a lot of data and, some steps are slow. So that's why I added them to a job system. This job is doing a lot of stuff. That job is ...
1
vote
1answer
62 views

How does the queue work?

I'm trying to find documentation on how the queue system works, and what parts of craft relies on it. To my current understanding, the queue is normally executed when users are logged in to admin, and ...
0
votes
0answers
21 views

Preventing certain queue jobs from being created, or selectively deleting jobs from queue

Does anyone know how I'd go about either preventing certain jobs from being added to the queue, or, if that isn't possible, deleting jobs given a certain criteria? The context is that I have a site ...
1
vote
1answer
56 views

Error on functions in queue: “Session does not exist in a console request.”

I already experienced this same problem with Craft Commerce a while ago (Error on functions in queue: "Session does not exist in a console request.") and got a solution that solved the ...
1
vote
1answer
86 views

Delay Updating element slugs and URIs Job

On a large website, after using feedme to import some content it immediatelly triggers the "Updating element slugs and URIs" process that takes very long time to complete. Is there a way to ...
2
votes
1answer
69 views

Error on functions in queue: "Session does not exist in a console request."

I get the following error on multiple order mails from Craft Commerce. The error points out to the lines where a macro is called: Email template parse error for email “New order”. Order: “e35f244”. ...
1
vote
1answer
89 views

How to prevent Craft from injecting scripts in the page?

I have a website that resides behind a static cache. Today, I realised that some of the cached pages contain this bit of JavaScript at the end: <script type="text/javascript"> /*<![CDATA[*/ (...
1
vote
1answer
104 views

Painfully slow Feed Me import of User accounts

I'm aware of this thread on Feed Me slow performance, but I'm raising it as a separate thread in case there is anything particular about my circumstance that is pertinent. I'm running Craft 3.4.18 ...
1
vote
1answer
365 views

EVENT_BEFORE_SAVE_ELEMENT Saving element loop in task/queue

I'm calling EVENT_BEFORE_SAVE_ELEMENT to trigger a task that then updates the entry, but it's causing a loop? The event is triggered when a specific entry type is saved: Event::on( Elements::class,...
1
vote
0answers
142 views

Craft queue keeps sticking despite 1GB memory allocation

I keep seeing a Craft 3 site with queue sticking and clearing the cache doesn't clear it. I have been thru plugins fixed some errors and now it all comes down to same issues: PHP Fatal error: ...
1
vote
2answers
400 views

Craft queue not being processed, listen not running

I built a site on a dev server and the Craft queue worked in that with no extra setup needed. In fact I installed Async Queue Manager because Crafts way was too slow. They both worked fine. I moved ...
2
votes
1answer
792 views

When should I run queue/listen instead of queue/run?

Definitions from the documentation: queue/run: runs all the queued-up jobs queue/listen: listens to the queue and runs new jobs Example case: The runQueueAutomatically config option is set to false,...
5
votes
2answers
756 views

How to best design large queue jobs?

I have a plugin that captures data and stores it as an Element, similar to a log. There can be a lot of Elements created so there is also a way to purge those Elements from the DB. In most cases, the ...
1
vote
1answer
72 views

Craft Queues: Job Event

In Control Panel we can see the progress of a certain job. I would like to hook on events like "DONE" or "FAILED" and do certain things in Control Panel, e.g. reloading the page, or redirecting ...
4
votes
1answer
325 views

How can I get tasks to complete when not logged in to the CP?

I've noticed that tasks only run when logged into the admin panel, is there anyway to avoid this? For some context: I have jobs scheduled on a cron to run every 30 minutes, when I log in it seems ...
2
votes
0answers
149 views

Is the Craft Queue suitable for processing form submissions?

I am looking to queue my form submissions to be processed in the background. I want to be able to only keep user data in the system/database as long as required. This will mean keeping it to debug it ...
1
vote
1answer
185 views

What Might Be Causing This Serialization Error?

Craft Pro 3.0.7Notifications Plugin 1.0.6PHP 7.0 In trying to send notifications for new entries that have a checkbox field, we get this error in the logs: 2018-05-14 09:19:32 [192.168.10.1][1][-...