Uh oh!
There was an error while loading. Please reload this page.
[5.x] Add ability to specify the queue connection on static:warm command - #8634
Conversation
jasonvarga
commented
Aug 28, 2023
Thank you. I made the tests run. The comment said |
grantholle
commented
Aug 28, 2023
Yeah I had the same experience ¯_(ツ)_/¯ |
jasonvarga
commented
Aug 28, 2023
I want to be sure that we make the difference between the queue connection and queue itself very obvious. i.e. When you do I'm not sure which is the right option. Both could be argued, so we should find some other examples somewhere and follow convention. |
grantholle
commented
Aug 29, 2023
Yeah I kind of had the same question. I did it this way since there's the When looking at the Maybe make the |
…cms into static-warm-queue-connection
grantholle
commented
Sep 7, 2023
Hey @jasonvarga I made some improvements to hopefully make it more clear to differentiate between queue name and connection. Let me know, thanks. |
grantholle
commented
Sep 7, 2023
(I'll also fix the tests, just wondering if you think it's all right) |
grantholle
commented
Oct 17, 2023
Hey @jasonvarga do you mind revisiting this? |
duncanmcclean
left a comment
There was a problem hiding this comment.
This seems to be working well for me. Just had two thoughts around the new config option.
| | | ||
| */ | ||
| 'queue_connection' => env('STATAMIC_STATIC_WARM_QUEUE_CONNECTION'), |
There was a problem hiding this comment.
I wonder if it might be worth changing this to warm_queue_connection to stay consistent with warm_queue above?
There was a problem hiding this comment.
Also, I wonder if it might be worth falling back to the default connection here so we don't need to do that in the StaticWarm command:
| 'queue_connection' => env('STATAMIC_STATIC_WARM_QUEUE_CONNECTION'), | |
| 'warm_queue_connection' => env('STATAMIC_STATIC_WARM_QUEUE_CONNECTION', config('queue.default')), |
# Conflicts: # config/static_caching.php # src/Console/Commands/StaticWarm.php # tests/Console/Commands/StaticWarmTest.php
…helpers pass the test again.
…it'll figure out which connection based on your config.
jasonvarga
commented
Jul 16, 2024
I've updated this so that If you use |
* Allow configuring the Stache's Cache Store Related: statamic/cms#10303 * Ability to disable CP authentication Related: statamic/cms#8960 * Display custom logo as plain text Related: statamic/cms#10350 * Track sites.yaml path in git integration config Related: statamic/cms#10463 * Add ability to specify the queue connection on static:warm command Related: statamic/cms#8634
This is adding another workaround for #3291. It seems like the default queue connection needs to be
sync, but when I deploy changes I'd like to warm using the queue. This change allows you to specify the connection using the--queueoption.I added an additional test, even though they are marked as incomplete at the moment. I also updated another assertion to match the current output. In my experience the tests seems ok.
Closesstatamic/ideas#1153.