Reimplement host expiration to not need mysql events (#2552)
* Reimplement host expiration to not need mysql events * Update mocks
This commit is contained in:
@@ -498,6 +498,10 @@ func cronCleanups(ctx context.Context, ds fleet.Datastore, logger kitlog.Logger,
|
||||
if err != nil {
|
||||
level.Error(logger).Log("err", "cleaning label_membership", "details", err)
|
||||
}
|
||||
err = ds.CleanupExpiredHosts(ctx)
|
||||
if err != nil {
|
||||
level.Error(logger).Log("err", "cleaning expired hosts", "details", err)
|
||||
}
|
||||
|
||||
err = trySendStatistics(ctx, ds, fleet.StatisticsFrequency, "https://fleetdm.com/api/v1/webhooks/receive-usage-analytics")
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user