Update
parent
0918976250
commit
e8ad2bd135
|
|
@ -35,6 +35,7 @@ class PreIncomeJobCommand extends Command
|
|||
*/
|
||||
public function handle(DistributionPreIncomeJobService $jobService)
|
||||
{
|
||||
while (true) {
|
||||
DistributionPreIncomeJob::with('jobable')->pending()->chunkById(200, function ($jobs) use ($jobService) {
|
||||
foreach ($jobs as $job) {
|
||||
try {
|
||||
|
|
@ -74,5 +75,8 @@ class PreIncomeJobCommand extends Command
|
|||
}
|
||||
}
|
||||
});
|
||||
|
||||
sleep(5);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue