|
|
@@ -29,17 +29,6 @@ class CityWarningNoticeJobs implements ShouldQueue
|
|
|
public $tries = 3; // 限制重试次数
|
|
|
public $timeout = 600; // 10分钟超时
|
|
|
|
|
|
- protected $message_data;
|
|
|
- /**
|
|
|
- * Create a new job instance.
|
|
|
- *
|
|
|
- * @return void
|
|
|
- */
|
|
|
- public function __construct(array $message_data)
|
|
|
- {
|
|
|
- $this->message_data = $message_data;
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Execute the job.
|
|
|
*
|
|
|
@@ -101,12 +90,12 @@ class CityWarningNoticeJobs implements ShouldQueue
|
|
|
}
|
|
|
}
|
|
|
} catch (\Exception $e) {
|
|
|
- Log::info('job_error', '数据清洗-城市为空预警通知队列失败', ['data' => $this->message_data, 'error' => $e->getMessage()]);
|
|
|
+ Log::info('job_error', '数据清洗-城市为空预警通知队列失败', ['error' => $e->getMessage()]);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public function failed(\Throwable $exception)
|
|
|
{
|
|
|
- Log::info('job_error', '数据清洗-城市为空预警通知队列完全失败', ['data' => $this->message_data, 'error' => $exception->getMessage()]);
|
|
|
+ Log::info('job_error', '数据清洗-城市为空预警通知队列完全失败', ['error' => $exception->getMessage()]);
|
|
|
}
|
|
|
}
|