Comments (3)
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.
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.
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)
- Cant install via Craft INterface HOT 3
- When a job fails restarting the job in Queue Manager won't actually restart the job HOT 1
- Async Queue breaks Entry auto-save in Craft 3.7.21 HOT 8
- Queue jobs not processing HOT 21
- Jobs not proccessing when sent from plugin HOT 4
- Could not acquire mutex lock for the queue (queue) HOT 2
- Commerce Email Template Not Found HOT 1
- Craft 4 compatibility HOT 3
- DB error (max-user-connections) HOT 5
- [BUG] Is there a version for Craft v3? HOT 1
- [BUG] Infinite image transforms HOT 5
- Delayed job causes queue to stall HOT 1
- Jobs not running after upgrade to Craft 4 HOT 12
- ASYNC_QUEUE_CONCURRENCY is not applied (anymore) HOT 1
- Latest fixes for Craft 3 / PHP 7.4? HOT 3
- Moved a client's site to Commerce 3 and emails not sending HOT 5
- ostark/craft-async-queue 3.1.0 requires symfony/process ^5.0 HOT 2
- Emails fail to send with plugin enabled HOT 1
- Async Queue Test Does not run HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from craft-async-queue.