reorder housekeeping tasks by interval

This commit is contained in:
Andrew Dolgov 2025-05-02 23:26:13 +03:00
parent 55bb464cc9
commit 997c10437e
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A

View File

@ -1734,22 +1734,6 @@ class RSSUtils {
}
);
$scheduler->add_scheduled_task('expire_error_log', '@hourly',
function() {
self::expire_error_log();
return 0;
}
);
$scheduler->add_scheduled_task('expire_lock_files', '@hourly',
function() {
self::expire_lock_files();
return 0;
}
);
$scheduler->add_scheduled_task('disable_failed_feeds', '@daily',
function() {
self::disable_failed_feeds();
@ -1774,6 +1758,22 @@ class RSSUtils {
}
);
$scheduler->add_scheduled_task('expire_error_log', '@hourly',
function() {
self::expire_error_log();
return 0;
}
);
$scheduler->add_scheduled_task('expire_lock_files', '@hourly',
function() {
self::expire_lock_files();
return 0;
}
);
$scheduler->add_scheduled_task('send_headlines_digests', '@hourly',
function() {
Digest::send_headlines_digests();