mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-31 11:27:24 +08:00
server.py builds an opaque dict at submission time from extra_data and pins it on PromptServer.active_prompt_metadata while main.py's worker drives the prompt. send_sync spreads the dict's key/value pairs onto outgoing payloads so frames carry whatever tags the submission attached (today: workflow_id). The mechanism is intentionally untyped — the transport layer doesn't know what workflow_id means or treat any key specially. Adding a new propagated field requires only a one-line addition in post_prompt; execution.py and comfy_execution/progress.py are not touched. execution.py changes: 0 lines. |
||
|---|---|---|
| .. | ||
| app_test | ||
| assets_test | ||
| comfy_api_test | ||
| comfy_extras_test | ||
| comfy_quant | ||
| comfy_test | ||
| execution_test | ||
| folder_paths_test | ||
| prompt_server_test | ||
| seeder_test | ||
| server/utils | ||
| server_test | ||
| utils | ||
| deploy_environment_test.py | ||
| feature_flags_test.py | ||
| README.md | ||
| requirements.txt | ||
| websocket_feature_flags_test.py | ||
Pytest Unit Tests
Install test dependencies
pip install -r tests-unit/requirements.txt
Run tests
pytest tests-unit/