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