Skip to content

Conversation

ebr
Copy link
Member

@ebr ebr commented May 10, 2023

  1. if retrieving an item from the queue raises an exception, the InvocationProcessor thread crashes, but the API continues running in a non-functional state. This fixes the issue
  2. when there are no items in the queue, sleep 1 second before checking again - avoid hammering the queue uncontrollably
  3. Ensures the thread isn't crashed if an exception is raised from invoker, and emits the error event accordingly ([bug]: reproducible nodes engine soft lock with collect/iterate nodes #3222)

Intentionally using base Exceptions here because for now we don't know which specific exception to expect. We can refine this in the future.

Fixes (sort of)? #3222

@ebr ebr requested a review from psychedelicious May 10, 2023 04:23
@ebr ebr force-pushed the queue-soft-lock branch from 5e91d55 to 41e5afa Compare May 10, 2023 13:51
@psychedelicious psychedelicious self-requested a review May 10, 2023 13:53
@ebr ebr force-pushed the queue-soft-lock branch 2 times, most recently from 9a3f776 to f7480b1 Compare May 10, 2023 13:55
1. if retrieving an item from the queue raises an exception, the
   InvocationProcessor thread crashes, but the API continues running in
   a non-functional state. This fixes the issue
2. when there are no items in the queue, sleep 1 second before checking
   again.
3. Also ensures the thread isn't crashed if an exception is raised from
   invoker, and emits the error event

Intentionally using base Exceptions because for now we don't know which
specific exception to expect.

Fixes (sort of)? invoke-ai#3222
@ebr ebr force-pushed the queue-soft-lock branch from ed6aead to 56fe8ea Compare May 11, 2023 20:22
@ebr ebr enabled auto-merge (rebase) May 12, 2023 17:11
@ebr ebr disabled auto-merge May 12, 2023 17:11
@ebr ebr enabled auto-merge (rebase) May 12, 2023 21:47
@ebr ebr merged commit 63db3fc into invoke-ai:main May 12, 2023
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.

4 participants