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

perf: Make scheduler be called in 10 seconds interval if no tasks #429

Merged
merged 1 commit into from
Nov 30, 2022

Conversation

psprint
Copy link
Contributor

@psprint psprint commented Nov 20, 2022

Description

Fixed #409

Motivation and Context

Related Issue(s)

#409

Usage examples

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@vladdoster
Copy link
Member

Please rebase your branch.

@psprint
Copy link
Contributor Author

psprint commented Nov 22, 2022

I've rebased the branch.

@vladdoster vladdoster merged commit 1681ce4 into zdharma-continuum:main Nov 30, 2022
@jankatins
Copy link
Contributor

jankatins commented Nov 30, 2022

After having this commit in the zinit repo, I've no plugins loaded anymore. It seems to be, this again broke the wait ice, removing all wait ices let the plugins get loaded again.

Also verified by reverting this commit on top of #417 (which I run locally) and starting with wait ices

@vladdoster
Copy link
Member

@psprint There needs to be a zunit test for this change so we avoid reverting it again.

@mustaqimM
Copy link

This doesn't seem to lower the CPU usage:
image

psprint added a commit to psprint/.priv-zinit-fork that referenced this pull request Dec 1, 2022
psprint added a commit to psprint/.priv-zinit-fork that referenced this pull request Dec 1, 2022
@vladdoster
Copy link
Member

vladdoster commented Dec 2, 2022

This doesn't seem to lower the CPU usage:
image

@mustaqimM The commit was reverted.

github-actions bot pushed a commit that referenced this pull request Dec 17, 2022
# [3.9.0](v3.8.0...v3.9.0) (2022-12-17)

### Bug Fixes

* remove broken gh-r zunit test for "warp" ([#430](#430)) ([64fa4ae](64fa4ae))

### Features

* add `completions` ice ([#417](#417)) ([59975d7](59975d7))
* display version via `version` sub command ([bfb01e6](bfb01e6))

### Performance Improvements

* reduce scheduler task check to 10 second interval ([#429](#429)) ([1681ce4](1681ce4))

### Reverts

* "perf: reduce scheduler task check to 10 second interval ([#429](#429))" ([#432](#432)) ([cfd3261](cfd3261))
@github-actions
Copy link

🎉 This PR is included in version 3.9.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

psprint added a commit to psprint/.priv-zinit-fork that referenced this pull request Dec 30, 2022
psprint pushed a commit to psprint/.priv-zinit-fork that referenced this pull request Dec 30, 2022
psprint pushed a commit to psprint/.priv-zinit-fork that referenced this pull request Dec 30, 2022
# [3.9.0](zdharma-continuum/zinit@v3.8.0...v3.9.0) (2022-12-17)

### Bug Fixes

* remove broken gh-r zunit test for "warp" ([zdharma-continuum#430](zdharma-continuum#430)) ([64fa4ae](zdharma-continuum@64fa4ae))

### Features

* add `completions` ice ([zdharma-continuum#417](zdharma-continuum#417)) ([59975d7](zdharma-continuum@59975d7))
* display version via `version` sub command ([bfb01e6](zdharma-continuum@bfb01e6))

### Performance Improvements

* reduce scheduler task check to 10 second interval ([zdharma-continuum#429](zdharma-continuum#429)) ([1681ce4](zdharma-continuum@1681ce4))

### Reverts

* "perf: reduce scheduler task check to 10 second interval ([zdharma-continuum#429](zdharma-continuum#429))" ([zdharma-continuum#432](zdharma-continuum#432)) ([cfd3261](zdharma-continuum@cfd3261))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants