diff options
author | Mario <mario@mariovavti.com> | 2022-12-10 17:03:57 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-12-10 17:03:57 +0000 |
commit | e1c28351734d175476bc8f0d6cdf261dee3c07e0 (patch) | |
tree | 50b4659c904c0b2803d57d114a104ccd8655fd6c /Zotlabs/Daemon/Cron_weekly.php | |
parent | 4f9a933108eb0a41671ec9464f1d7fb90c2d2233 (diff) | |
download | volse-hubzilla-e1c28351734d175476bc8f0d6cdf261dee3c07e0.tar.gz volse-hubzilla-e1c28351734d175476bc8f0d6cdf261dee3c07e0.tar.bz2 volse-hubzilla-e1c28351734d175476bc8f0d6cdf261dee3c07e0.zip |
add option to set worker sleep based on load average, remove redundand code and add return to some daemons
Diffstat (limited to 'Zotlabs/Daemon/Cron_weekly.php')
-rw-r--r-- | Zotlabs/Daemon/Cron_weekly.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Zotlabs/Daemon/Cron_weekly.php b/Zotlabs/Daemon/Cron_weekly.php index 407aa40ef..75fb94700 100644 --- a/Zotlabs/Daemon/Cron_weekly.php +++ b/Zotlabs/Daemon/Cron_weekly.php @@ -22,12 +22,12 @@ class Cron_weekly { mark_orphan_hubsxchans(); - // Find channels that were removed in the last three weeks, but + // Find channels that were removed in the last three weeks, but // haven't been finally cleaned up. These should be older than 10 - // days to ensure that "purgeall" messages have gone out or bounced - // or timed out. + // days to ensure that "purgeall" messages have gone out or bounced + // or timed out. - $r = q("select channel_id from channel where channel_removed = 1 and + $r = q("select channel_id from channel where channel_removed = 1 and channel_deleted > %s - INTERVAL %s and channel_deleted < %s - INTERVAL %s", db_utcnow(), db_quoteinterval('21 DAY'), db_utcnow(), db_quoteinterval('10 DAY') @@ -59,5 +59,6 @@ class Cron_weekly { * End Cron Weekly */ + return; } -}
\ No newline at end of file +} |