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

Fix 100% CPU load in session_processor_default._process() #6095

Merged
merged 2 commits into from Mar 31, 2024

Conversation

lstein
Copy link
Collaborator

@lstein lstein commented Mar 31, 2024

Summary

This fixes a state in which the invokeai web server goes into a fast spin loop, consuming 100% CPU.

Related Issues / Discussions

Related to the fix for generation pause/resume in commit 9a1b35fa372fcfe99a43cda1e93c17dfba76786f. I have tested that pause/resume/cancel still work.

QA Instructions

Launch invokeai-web and monitor its CPU usage with top or similar system profiling tool. It should settle down at near 0% CPU usage when not actively generating an image.

Merge Plan

Merge when approved.

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)

@github-actions github-actions bot added python PRs that change python files services PRs that change app services labels Mar 31, 2024
@hipsterusername hipsterusername merged commit 1badf0f into main Mar 31, 2024
14 checks passed
@hipsterusername hipsterusername deleted the lstein/bugfix/100-percent-cpu branch March 31, 2024 16:42
@hipsterusername
Copy link
Member

Good catch!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python PRs that change python files services PRs that change app services
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants