On the problem of asynchronously executing Command in Artisan::queue

as the title: see in the official documentation that you can use the Artisan::queue queue to execute command. But after looking for it for a long time, I don"t know how to set the number of retries. If any boss knows, ask for advice.

use Illuminate\Support\Facades\Artisan;
Artisan::queue("sync:fba",[
            "enterprise"=> $enterId,
            "--warehouse"=> $warehouseId,
            "--command"=> $commandId,
        ]); //FBA
Oct.28,2021

with a-- tries parameter

Menu