public function handle() {
$jobId = $this->job->getJobId(); //当前队列的id值 可做存储
}
public function failed()
{
\Log::error(__METHOD__ . "执行失败");
if($this->attempts() > 5){ // 判断失败次数
\Log::error(__METHOD__ ."执行失败超过 {$this->attempts()} 次");
$this->delete(); //如果超过一定尝试数,则删除该队列
}
}