fix(covers): generate card conversion inline during covers:generate
站点无常驻 queue worker,media conversion 走 database 队列会永远不被消费, 导致封面 card 缩略图 404/403。批量生成期间关闭 queue_conversions_by_default。
This commit is contained in:
@@ -37,6 +37,9 @@ class GenerateCovers extends Command
|
||||
|
||||
$model = (string) ($this->option('model') ?: blog_setting('llm_image_model', 'image-01'));
|
||||
|
||||
// 站点无常驻 queue worker:批量生成期间同步产出 card 转换,避免永远卡在队列里。
|
||||
config(['media-library.queue_conversions_by_default' => false]);
|
||||
|
||||
$query = Post::query()->published()->orderedForList();
|
||||
|
||||
if ($ids = trim((string) $this->option('post'))) {
|
||||
|
||||
Reference in New Issue
Block a user