mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
chore: update maintenance task to only iterate over active projects
This commit is contained in:
parent
bc3e1990d0
commit
b1e11ab854
1 changed files with 2 additions and 2 deletions
|
|
@ -65,8 +65,8 @@ class Maintenance extends Action
|
|||
Console::info("[{$time}] Notifying workers with maintenance tasks every {$interval} seconds");
|
||||
|
||||
// Iterate through project only if it was accessed in last 24 hours
|
||||
$interval = DateInterval::createFromDateString('24 hours');
|
||||
$before24h = (new DateTime())->sub($interval);
|
||||
$dateInterval = DateInterval::createFromDateString('24 hours');
|
||||
$before24h = (new DateTime())->sub($dateInterval);
|
||||
|
||||
$dbForPlatform->foreach(
|
||||
'projects',
|
||||
|
|
|
|||
Loading…
Reference in a new issue