Skip to content

Conversation

@sw-dkreider
Copy link

Summary

This PR fixes compatibility issues with ComfyUI 0.3.76, which introduced breaking changes to the PromptQueue API.

Changes

  1. Add process_item parameter to user_queue_task_done() - ComfyUI 0.3.76 now passes this additional argument
  2. Override get_current_queue_volatile - The /queue endpoint now uses this method instead of get_current_queue
  3. Fix queue item format - Unwrap Sentinel's dict format back to tuple format for proper slicing in server.py

Problem

Without these fixes, ComfyUI 0.3.76 throws:

  • TypeError: user_queue_task_done() got unexpected keyword argument 'process_item'
  • TypeError: unhashable type: 'slice' (when accessing /queue endpoint)

Testing

Tested with ComfyUI 0.3.76 (Revision 4297) on NVIDIA RTX PRO 6000 Blackwell. Queue operations, job execution, and user isolation all work correctly.

ComfyUI 0.3.76 introduced breaking changes to the PromptQueue API:

1. `task_done()` now accepts an additional `process_item` parameter
2. `get_current_queue_volatile()` is used by server.py for the /queue endpoint
3. Queue items returned must be in tuple format for slicing (x[:5])

Changes:
- Add `process_item=None` parameter to `user_queue_task_done()`
- Override `get_current_queue_volatile` in addition to `get_current_queue`
- Unwrap Sentinel's dict format back to original tuple format in queue getter

Without these fixes, ComfyUI 0.3.76 throws:
- TypeError: user_queue_task_done() got unexpected keyword argument 'process_item'
- TypeError: unhashable type: 'slice' (when accessing /queue endpoint)
@DayMan84
Copy link

DayMan84 commented Dec 6, 2025

Hello, @sw-dkreider,

I have created a fork of sentinel which resolved this issue and have begun adding many additional features.

https://github.com/DayMan84/ComfyUI-Usgromana/

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.

3 participants