I swear that I tried to research the subject before asking. Our upcoming hosting service has a jobs feature, to run background tasks. I’d like to be able to document how Kirby users can configure a worker job to process queue tasks, such as image transformations.
- With Craft CMS, I can instruct the worker to run
craft queue/listen - With Laravel, it’s something like
artisan queue:work.
I have not found any commands related to a queue with the Kirby CLI but these two plugins:
- GitHub - tobimori/kirby-queues: ⏰ Simple but sophisticated queueing / background task API for Kirby CMS 5+ - potentially suitable
- GitHub - bvdputte/kirby-queue: A simple queue utility plugin for Kirby 3 - not available for v5?
At best this is a built-in feature, with no extra plugins required. Image transformations can be a performance pain point. We can keep the frontend fast and the hosting setup lean by outsourcing image transforms to a local background job.