update status
This commit is contained in:
@@ -34,6 +34,7 @@ class SendRoadObservationToNikarayanCommand extends Command
|
||||
->whereBetween('StartTime_DateTime_fa', ['1403-01-01 00:00:00', '1403-07-14 23:59:59'])
|
||||
->chunk(50, function ($roads) {
|
||||
foreach ($roads as $road) {
|
||||
$road->update(['rms_status' => 1]);
|
||||
SendRoadObservationToNikarayan::dispatch($road)->delay(now()->addSeconds(2));
|
||||
Log::channel('road_observation_problem')->info("Job for Road Observed ID {$road->id} scheduled with 2 seconds delay.");
|
||||
$this->info("Scheduled job for Road ID: {$road->id} (Delay: 2s)");
|
||||
|
||||
Reference in New Issue
Block a user