-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of Redis yields "job priority is not supported in the driver" error #201
Comments
Seems like when I remove the call where the priority of the Craft queue is set in the source code, then it's working fine. Would it be an idea to set the priority to
|
Hmm, are you using |
Yes, this is what our
|
Apart from that, we're requiring the Yii Redis Component in the
Our servers are provisioned by Forge, so Redis is baked in there. Is there anything we are doing wrong? |
I stumbled upon this issue, where it's claimed that Redis hasn't implemented job priority: yiisoft/yii2-queue#205 |
Thanks, will look into adding a workaround soon. |
Thank you! 🙂 Since we need the functionality pretty soon, do you see any problems in forking the plugin for now and commenting out the two lines in the source code where priority is set? |
Fixed in 6f6c115 on the |
Wonderful, cheers! 😍 |
Just installed the fix and tested it: unfortunately, this doesn't solve the problem, as Craft queue indeed has a Is it possible to check in the |
Yeah, you're right, the Redis queue just throws an error if a priority is set. Will work on another fix for this. |
Haven't had a chance to test, but the priority is now not set when using a Redis queue in 042a9f3. |
Will test right away! |
Yes, that looks very good! Thanks again for the quick fixes! 💯 |
One last question: when we deploy a new release, we naturally want the Blitz caches to be in that release as well. That's why we have the CLI command I'm getting the situation of Screenshot 1 (left: new release, right: old release) whereas I'd be expecting the scenario of Screenshot 2 after the CLI command – which I'm only getting after I've visited the respective cached page. |
Seems like |
By the way, I think also the Craft guys fixed the issue on their side: craftcms/cms#5876 |
They did, and I've since followed suit with catching an exception in 167f277. |
Just realized that not only the |
Also, it seems our cached HTML files get deleted, even though we don't have a specific cache duration set (from the config file, I see that the default value |
Ok, hopefully dee62a9 will fix the error in the console.
The |
Looks good, thanks! 😍 |
Is there any setting that clears the cached HTML files when the expiry date is not specifically set (and thus infinite) and the "Clear Cache Automatically" parameter disabled? Our caches are rebuilt periodically whereas they should always have the same cached file. Maybe Craft caching is still interfering here? |
This could also be related to #70? |
Have you disabled Craft caching by setting What action triggers a cache refresh? No files should be deleted if |
No, Guess the "dual" caching strategy is the problem? |
While using both caching systems together can cause issues, it shouldn't lead to pages cached by Blitz being cleared unexpectedly. |
Just tried setting the parameter to |
Im getting this now when I upload an Asset. I have narrowed it down to Blitz Craft 3.7.39 I only installed Redis this morning and all of that works fine Here is Sentry error https://sentry.io/share/issue/e483de1948d04ac4bdf28030f73f9990/ I do use |
Now Im not even sure if any Blitz tasks have made the new queue today. Am I missing some config option? @bencroker This is on saving entries too. You want me to make a new issue or its ok to live here? |
This issue is 2 years old, new issue please. |
Describe the bug
We're using Redis for our Craft CMS queue. On top of it, we're using Blitz to cache certain sites that receive lots of traffic. However, using Blitz with Redis always results in the error message "job priority is not supported in the driver" when trying to upload an image or create an entry. It doesn't matter whether or not we're using Blitz File Storage or Yii Cache Storage, and whether or not we're moving cache to Redis – always the same error.
To reproduce
Steps to reproduce the behaviour:
Expected behaviour
Upload / creation should be fine.
Screenshots
Versions
The text was updated successfully, but these errors were encountered: