Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only heartbeat if necessary in backfill loop (#39399)
Currently, backfill sleeps for a minute in every iteration, which is extremely slow. The reason is that it waits synchronously until a heartbeat is necessary. Since the loop is otherwise fast, this results in waits of up to a minute between syncing. With this change, if we don't add sleep(1), the loop will be very fast and generate tons of logs. So I sleep each second to slow it down just a bit.
- Loading branch information