mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Check failed_jobs in db-ninja-0
This commit is contained in:
parent
3850cffd58
commit
0487f4a677
@ -371,6 +371,9 @@ class CheckData extends Command
|
||||
|
||||
private function checkFailedJobs()
|
||||
{
|
||||
$current = config('database.default');
|
||||
config(['database.default' => env('QUEUE_DATABASE')]);
|
||||
|
||||
$count = DB::table('failed_jobs')->count();
|
||||
|
||||
if ($count > 0) {
|
||||
@ -378,6 +381,8 @@ class CheckData extends Command
|
||||
}
|
||||
|
||||
$this->logMessage($count . ' failed jobs');
|
||||
|
||||
config(['database.default' => $current]);
|
||||
}
|
||||
|
||||
private function checkBlankInvoiceHistory()
|
||||
|
Loading…
x
Reference in New Issue
Block a user