mirror of
https://github.com/friendica/friendica
synced 2025-04-27 02:30:10 +00:00
Recursively delete failed worker tasks
This commit is contained in:
parent
c2b2e8ae9f
commit
06280aa5a3
5 changed files with 82 additions and 30 deletions
|
@ -128,11 +128,14 @@ class Cron
|
|||
if (DI::config()->get('system', 'optimize_tables')) {
|
||||
Worker::add(PRIORITY_LOW, 'OptimizeTables');
|
||||
}
|
||||
|
||||
DI::config()->set('system', 'last_cron_daily', time());
|
||||
|
||||
// Process all unprocessed entries
|
||||
Queue::processAll();
|
||||
|
||||
// Resubscribe to relay servers
|
||||
Relay::reSubscribe();
|
||||
|
||||
DI::config()->set('system', 'last_cron_daily', time());
|
||||
}
|
||||
|
||||
Logger::notice('end');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue