Revert "Remove unneeded error "last successful id is higher than latest id" (fixes #4363) (#4486)" (#4806)

This reverts commit c895e57086.
This commit is contained in:
Nutomic 2024-06-14 14:15:12 +02:00 committed by GitHub
parent 99160228ae
commit a3c8761bed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -167,6 +167,14 @@ impl InstanceWorker {
latest_id
};
if id >= latest_id {
if id > latest_id {
tracing::error!(
"{}: last successful id {} is higher than latest id {} in database (did the db get cleared?)",
self.instance.domain,
id.0,
latest_id.0
);
}
// no more work to be done, wait before rechecking
tokio::select! {
() = sleep(*WORK_FINISHED_RECHECK_DELAY) => {},