-
Notifications
You must be signed in to change notification settings - Fork 242
Selectively disabling workflow blocks from inference server #1924
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
dc753ae to
cb54f28
Compare
⚡️ Codeflash found optimizations for this PR📄 393% (3.93x) speedup for
|
f90e453 to
19b658c
Compare
This is outdated. We changed code after the suggestion. |
1a6dbbc to
4a0d099
Compare
…ow-blocks-disabling
4a0d099 to
edf8e8d
Compare
|
bugbot review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
What does this PR do?
It allows the inference server configuration to selectively disable blocks at loading time. So any workflows containing these blocks will fail.
This is needed for some infrastructure testing work, but may have more uses like security, dev-environments etc.
Type of Change
Testing
Test details:
Checklist
Additional Context
Note
Implements configurable filtering of workflow blocks during load, preventing disabled types/patterns from being registered or discovered.
WORKFLOW_DISABLED_BLOCK_TYPESandWORKFLOW_DISABLED_BLOCK_PATTERNSinenv.py(lowercased lists)_should_filter_block()and apply filtering inload_blocks()to remove matching blocks byblock_typeor identifier substringstests/workflows/unit_tests/core_steps/test_loader_block_filtering.pycovering type and pattern filtering and feature toggle behaviorWORKFLOW_BLOCK_FILTERING.mddocumenting configuration, usage scenarios, deployment examples, and troubleshootingWritten by Cursor Bugbot for commit a1887f6. This will update automatically on new commits. Configure here.