start hack archiver

This commit is contained in:
M Alfiyan Syamsuddin 2021-09-02 13:27:34 +07:00
parent 28a998c272
commit 81dc8640be
1 changed files with 1 additions and 0 deletions

View File

@ -65,6 +65,7 @@ class UptimeArchiver implements ArchiverInterface
*/
public function archive($server_id = null)
{
// WIP, create more dynamic by config, temp use config.php
$latest_date = new \DateTime('-1 week 0:0:0');
// Lock tables to prevent simultaneous archiving (by other sessions or the cron job)