mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 10:24:31 -04:00
Fixes for scheduler
This commit is contained in:
parent
8b8d021ad1
commit
ce6cea837a
@ -23,6 +23,8 @@ class SchedulerCheck implements ShouldQueue
|
|||||||
{
|
{
|
||||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||||
|
|
||||||
|
public $tries = 1;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@ -45,18 +47,18 @@ class SchedulerCheck implements ShouldQueue
|
|||||||
Artisan::call('migrate', ['--force' => true]);
|
Artisan::call('migrate', ['--force' => true]);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
nlog("I wasn't able to migrate the data.");
|
nlog("I wasn't able to migrate the data.");
|
||||||
}
|
nlog($e->getMessage());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Artisan::call('clear-compiled');
|
Artisan::call('clear-compiled');
|
||||||
Artisan::call('cache:clear');
|
Artisan::call('cache:clear');
|
||||||
Artisan::call('route:clear');
|
Artisan::call('route:clear');
|
||||||
Artisan::call('config:clear');
|
Artisan::call('config:cache');
|
||||||
Artisan::call('optimize');
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
nlog($e->getMessage());
|
|
||||||
nlog("I wasn't able to optimize.");
|
nlog("I wasn't able to optimize.");
|
||||||
|
nlog($e->getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -64,6 +66,7 @@ class SchedulerCheck implements ShouldQueue
|
|||||||
Artisan::call('view:clear');
|
Artisan::call('view:clear');
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
nlog("I wasn't able to clear the views.");
|
nlog("I wasn't able to clear the views.");
|
||||||
|
nlog($e->getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user