Skip to content

change worker cache update to be non blocking

David Vorick requested to merge worker-cache-nonblocking into master

Overview

The workers could get stuck when a new block appears because the cache updater blocks until the worker can get a hold of the consensus lock, which is not always a fast process. This MR performs the cache update in a background thread so that the worker does not stall if the consensus lock is unavailable.

Checklist

Review and complete the checklist to ensure that the MR is complete before assigned to an approver.

  • All new methods or updated methods have clear docstrings
  • Testing added or updated for new methods
  • Any new packages are added to Makefile and .gitlab-ci.yml
  • API documentation updated for API updates
  • Module README.md updated for changes to workflow
  • Issue added to Sia-UI repo for new supporting features
  • Changelog File Created

Issues Closed

Edited by David Vorick

Merge request reports