Add scheduled task to clear uploads every two minutes
This commit is contained in:
parent
9c7f40e4fe
commit
484a3dbe5c
@ -33,6 +33,7 @@ protected function schedule(Schedule $schedule): void
|
||||
$this->check_scheduled_backups($schedule);
|
||||
$this->pull_helper_image($schedule);
|
||||
$this->check_scheduled_tasks($schedule);
|
||||
$schedule->command('uploads:clear')->everyTwoMinutes();
|
||||
} else {
|
||||
// Instance Jobs
|
||||
$schedule->command('horizon:snapshot')->everyFiveMinutes();
|
||||
@ -49,6 +50,7 @@ protected function schedule(Schedule $schedule): void
|
||||
$this->check_scheduled_tasks($schedule);
|
||||
|
||||
$schedule->command('cleanup:database --yes')->daily();
|
||||
$schedule->command('uploads:clear')->everyTwoMinutes();
|
||||
}
|
||||
}
|
||||
private function pull_helper_image($schedule)
|
||||
|
@ -20,7 +20,7 @@
|
||||
*/
|
||||
'timestamp' => '-1 HOURS',
|
||||
'schedule' => [
|
||||
'enabled' => true,
|
||||
'enabled' => false,
|
||||
'cron' => '25 * * * *', // run every hour on the 25th minute
|
||||
],
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user