|
|
@@ -11,8 +11,6 @@ import org.cobbzilla.util.daemon.SimpleDaemon; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
|
|
|
|
import static java.util.concurrent.TimeUnit.HOURS; |
|
|
|
import static org.cobbzilla.util.daemon.ZillaRuntime.now; |
|
|
|
import static org.cobbzilla.util.daemon.ZillaRuntime.shortError; |
|
|
@@ -27,7 +25,7 @@ public class AppDataCleaner extends SimpleDaemon { |
|
|
|
|
|
|
|
@Override protected void process() { |
|
|
|
try { |
|
|
|
final int ct = dataDAO.bulkDeleteWhere("expiration < " + now(), new HashMap<>()); |
|
|
|
final int ct = dataDAO.bulkDeleteWhere("expiration < " + now()); |
|
|
|
log.info("process: removed " + ct + " expired AppData records"); |
|
|
|
} catch (Exception e) { |
|
|
|
reportError("AppDataCleaner.process: "+shortError(e), e); |
|
|
|