Skip to content

Commit

Permalink
Add large queue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
haixuanTao committed Oct 11, 2024
1 parent a254d70 commit 409edcd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions node-hub/dora-qwenvl/dora_qwenvl/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@ def main():
event_type = event["type"]

if event_type == "INPUT":

# TODO: Remove this after https://github.com/dora-rs/dora/pull/652
while True:
next_event = node.next(timeout=0.001)
if next_event is not None and next_event["type"] == "INPUT":
event = next_event
else:
break

event_id = event["id"]

if "image" in event_id:
Expand Down

0 comments on commit 409edcd

Please sign in to comment.