run archive and cleanup per server (#515)

pull/682/head
avahldiek 2018-02-28 22:49:45 +01:00 committed by Timz99
parent de20bf2071
commit f3e851db1d
1 changed files with 5 additions and 5 deletions

View File

@ -71,11 +71,11 @@ class UpdateManager extends ContainerAware {
$status_new = $updater->update($server['server_id']); $status_new = $updater->update($server['server_id']);
// notify the nerds if applicable // notify the nerds if applicable
$notifier->notify($server['server_id'], $status_old, $status_new); $notifier->notify($server['server_id'], $status_old, $status_new);
}
// clean-up time!! archive all records // clean-up time!! archive all records
$archive = new ArchiveManager($this->container->get('db')); $archive = new ArchiveManager($this->container->get('db'));
$archive->archive(); $archive->archive($server['server_id']);
$archive->cleanup(); $archive->cleanup($server['server_id']);
}
} }
} }