I have a command class like this.
class MyCommand extends Command {
protected $signature = 'mycommand';
}
Then run this through the queue
Artisan::queue('mycommand');
A worker is running for multiple jobs php artisan queue:work --timeout=120
Normally, we can set a custom timeout for a job class like this
class MyJob implements ShouldQueue {
public $timeout = 240; // custom timeout
}
But how can I achieve this in a Command class properly?