Zoekt: Reduce nodes table update load

Background

There is too much load on the zoekt_nodes table with the heartbeat API.

Proposal

Adjust the tasks pulling the heartbeat API dependant on the number of pending tasks. And update the node only when the updated_at is older than 5s

Edited by Ravi Kumar