wip: article AI polish, category SEO fields, cover generator, membership plan seeder
This commit is contained in:
@@ -7,7 +7,10 @@ namespace App\Console\Commands;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
/**
|
||||
* Simple alternative to workerman:ai for local/dev: drain AI queues once or loop.
|
||||
* Dev-friendly alternative to `workerman:ai`.
|
||||
*
|
||||
* Does NOT start Workerman. It only wraps Laravel's `queue:work` for the
|
||||
* AI queues so local setups without pcntl/posix/PM2 can still drain jobs.
|
||||
*/
|
||||
class QueueAiWorkCommand extends Command
|
||||
{
|
||||
@@ -15,10 +18,12 @@ class QueueAiWorkCommand extends Command
|
||||
{--once : Process available jobs once and exit}
|
||||
{--max-time=60 : Max seconds when looping}';
|
||||
|
||||
protected $description = 'Process ai-content and ai-moderation queues (dev-friendly alternative to workerman:ai)';
|
||||
protected $description = 'Drain ai-content/ai-moderation via queue:work (does not start Workerman; use workerman:ai for that)';
|
||||
|
||||
public function handle(): int
|
||||
{
|
||||
$this->comment('queue:ai → Laravel queue:work (not Workerman). For a long-lived Workerman process use: php artisan workerman:ai start');
|
||||
|
||||
$params = [
|
||||
'--queue' => 'ai-content,ai-moderation',
|
||||
'--tries' => 3,
|
||||
|
||||
Reference in New Issue
Block a user