v1.4.0
Hi everybody this is our v1.4.0 release bringing big changes to the messenger queue layout, our background worker system. And because of that the update process is a little more complicated than usually. For a little more info you can check out our FAQ#messenger-queue-is-building-up-even-though-my-messengers-are-idling and our Admin Guide#symfony-messenger-queues
Comparison to previous version: v1.3.0
DB migrations | New ENV vars | Admin guide changes | Suggest cache clearing |
---|---|---|---|
☑️ | ❌ | ☑️ | ☑️ |
Upgrade Instructions
For Docker
We removed one of the containers in the docker compose, because we do not have separate workers for the different queues anymore. That means that the default is only one work process on the messenger queue.
If you need more than that, you can
- copy & paste the
messenger
part of thedocker/compose.yml
and give them unique container names or - use the docker compose replicas option instead: comment out container_name for messenger service and this block and just change amount of replica you need
services:
messenger:
deploy:
mode: replicated
replicas: <number of replicas here>
- Get the new docker image by either checking out the new code and building the image or pull the published image
- Stop the containers and remove the messenger containers:
docker compose down && docker compose rm
- Start the containers
docker compose up -d
For Bare Metal
- Stop all supervisor messenger processes:
supervisorctl stop messenger-ap:* messenger-kbin:*
- Remove the all process groups
supervisorctl remove messenger-ap messenger-kbin
- Edit the messenger config at
/etc/supervisor/conf.d/messenger-worker.conf
to:
[program:messenger]
command=php /var/www/mbin/bin/console messenger:consume async async_ap failed --time-limit=3600
user=www-data
numprocs=4
startsecs=0
autostart=true
autorestart=true
startretries=10
process_name=%(program_name)s_%(process_num)02d
Adjust the numprocs
parameter to your needs. Also be aware of the path to the mbin repo. If you are coming from kbin and never changed your folder structure then the second line has to be changed to:
command=php /var/www/kbin/bin/console messenger:consume async async_ap failed --time-limit=3600
- Get the new release:
git fetch && git checkout v1.4.0
- Run the update script:
bash bin/post-upgrade.sh
. If you get an error when running the db migrations you maybe have to stop your webserver, so nothing is trying to access the database. - Refresh supervisor and start the new messenger group:
supervisorctl reread && supervisorctl update && supervisorctl start messenger:*
What's Changed
- Remove the local condition from magazine autocomplete by @BentiGorlich in #455
- Add missing flash on contact form by @melroy89 in #454
- Translations update from Hosted Weblate by @weblate in #460
- add user badges to entry and post templates by @e-five256 in #467
- Reread and update as well by @melroy89 in #462
- make search recognize
[email protected]
handle format by @asdfzdfj in #465 - fix nodeinfo schema wrong version, add metadata by @asdfzdfj in #471
- load custom css from routes instead of inline by @asdfzdfj in #472
- adding alt text as caption in lightbox by @asdfzdfj in #473
- hotfix: allow custom style while still in 2fa by @asdfzdfj in #488
- Change the messenger queue layout by @BentiGorlich in #461
- Translations update from Hosted Weblate by @weblate in #474
- Using loading lazy on images by @melroy89 in #491
- Preload our logo by @melroy89 in #493
- FAQ: Explain 'all' messages by @melroy89 in #490
- FAQ: Retries three times by @melroy89 in #489
- FAQ: Typical message queue has changed by @melroy89 in #492
- Fix error on entries with an empty body by @BentiGorlich in #504
- move service worker registration into main app bundle by @asdfzdfj in #507
- use title instead of body for federated entry summary by @asdfzdfj in #506
- adjust tag matching to better handle some eastern scripts by @asdfzdfj in #508
- somewhat fix phpunit so it could run functional tests again by @asdfzdfj in #396
- Add column
last_origin_update
to magazine by @BentiGorlich in #503 - Add the correct cascading attribute to Entities by @BentiGorlich in #500
- Update Symfony packages + recipes+ NPM by @melroy89 in #510
- Update remaining composer packages by @melroy89 in #512
- Fix circular message by @BentiGorlich in #514
- Add support for incoming dislikes by @BentiGorlich in #513
- Remove route for down votes and make it a span by @BentiGorlich in #516
- Upgrade all remaining symfony packages by @melroy89 in #517
- Fix imagemanager not having a useful error message by @BentiGorlich in #523
- slightly fix object body extraction on set but empty body by @asdfzdfj in #525
- Update Postmill link by @melroy89 in #526
- Improve handling of images by @BentiGorlich in #501
- Update version number for 1.4 release by @nobodyatroot in #530
Full Changelog: v1.3.0...v1.4.0