Get task current heights always from db instead of ram because a db error at the end of a task run can cause desync