public function handle() {
$jobId = $this->job->getJobId(); //當(dāng)前隊(duì)列的id值 可做存儲(chǔ)
}
public function failed()
{
\Log::error(__METHOD__ . "執(zhí)行失敗");
if($this->attempts() > 5){ // 判斷失敗次數(shù)
\Log::error(__METHOD__ ."執(zhí)行失敗超過(guò) {$this->attempts()} 次");
$this->delete(); //如果超過(guò)一定嘗試數(shù)冕象,則刪除該隊(duì)列
}
}