Skip to content

Progress updates #102

@DragonfruitQuirky

Description

@DragonfruitQuirky

Anyway to get progress updates?

I see this in the task queue code but there is no way to hook into it?

                                elif msg['type'] == 'progress':
                                    # See ComfyUI::main.hijack_progress
                                    # 'prompt_id', 'node': https://github.com/comfyanonymous/ComfyUI/issues/2425
                                    progress_data = msg['data']
                                    # TODO: Node
                                    value = progress_data['value']
                                    max = progress_data['max']
                                    if value == 1:
                                        if pbar is not None:
                                            pbar.close()
                                        pbar = tqdm(initial=value, total=max)
                                    else:
                                        # value may not start with 1
                                        # e.g. start watch in the middle, CivitAICheckpointLoader
                                        if pbar is None:
                                            pbar = tqdm(initial=value, total=max)
                                        pbar.update(value - pbar.n)
                                        if value == max:
                                            pbar.close()
                                            pbar = None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions