Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: rework route rebuilding to use task scheduler #7196

Merged
merged 5 commits into from
Sep 27, 2024

Conversation

AlCalzone
Copy link
Member

With this PR, rebuilding routes of individual nodes or the entire network uses the new task scheduler introduced in #7193.

This means that beginRebuildingRoutes can now be called while individual node rebuilds are pending, and rebuildNodeRoutes can be called for multiple nodes without having to wait for the previous rebuild to finish.

Overlapping tasks are reused, so if rebuildNodeRoutes is has queued a task to rebuild routes for one node, a concurrent beginRebuildingRoutes will wait for the queued task instead of queued another one.

solves one part of #3707

packages/zwave-js/src/lib/driver/Task.test.ts Dismissed Show dismissed Hide dismissed
packages/zwave-js/src/lib/driver/Task.test.ts Dismissed Show dismissed Hide dismissed
@AlCalzone
Copy link
Member Author

@zwave-js-bot automerge

@zwave-js-bot zwave-js-bot enabled auto-merge (squash) September 27, 2024 12:38
@zwave-js-bot zwave-js-bot merged commit c29d22e into master Sep 27, 2024
17 checks passed
@zwave-js-bot zwave-js-bot deleted the node-heal-task branch September 27, 2024 12:43
AlCalzone added a commit that referenced this pull request Oct 7, 2024
This release adds an internal task scheduler that will allow more control over longer running tasks like device interviews, route rebuilding, firmware updates, etc. These improvements include pausing/resuming tasks, better prioritization for user-initiated actions, queueing tasks without interrupting ongoing ones, and more. Migration of existing features to the new scheduler will be done incrementally, starting with route rebuilding.

### Features
* Reworked route rebuilding to use the task scheduler. This enables rebuilding routes for multiple individual nodes at once. (#7196, #7203)

### Bugfixes
* Fixed a regression from `13.4.0` that prevented restoring NVM backups on 700/800 series controllers (#7220)

### Config file changes
* Add fingerprint to Aeotec ZWA024 (#7191)
* Correct max. value of SKU parameters for Kwikset locks (#7178)
* Add fingerprint to Remotec ZXT-800 (#7195)

### Changes under the hood
* Implement task scheduler (#7193)
* Upgrade to ESLint v9, typescript-eslint v8 (#6987)
* Update FAQ on secondary controllers (#7190)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants