Rate Limiter¶
Class: RateLimiterBlockV1
Source: inference.core.workflows.core_steps.flow_control.rate_limiter.v1.RateLimiterBlockV1
The Rate Limiter block controls the execution frequency of a branch within a Workflow by enforcing a cooldown period. It ensures that the connected steps do not run more frequently than a specified interval, helping to manage resource usage and prevent over-execution.
Block usage¶
Rate Limiter is useful when you have two blocks that are directly connected, as shown below:
--- input_a --> ┌───────────┐ ┌───────────┐ --- input_b --> │ step_1 │ --> output_a --> │ step_2 │ --- input_c --> └───────────┘ └───────────┘
If you want to throttle the Step 2 execution rate - you should apply rate limiter in between:
-
keep the existing blocks configuration as is (do not change connections)
-
set
depends_on
reference of Rate Limiter intooutput_a
-
set
next_steps
reference to be a list referring to[$steps.step_2]
-
adjust
cooldown_seconds
to specify what is the number of seconds that must be awaited before next time whenstep_2
is fired
Cooldown limitations
Current implementation of cooldown is limited to video processing - using this block in context of a
Workflow that is run behind HTTP service (Roboflow Hosted API, Dedicated Deployment or self-hosted
inference
server) will have no effect for processing HTTP requests.
Type identifier¶
Use the following identifier in step "type"
field: roboflow_core/rate_limiter@v1
to add the block as
as step in your workflow.
Properties¶
Name | Type | Description | Refs |
---|---|---|---|
name |
str |
Enter a unique identifier for this step.. | ❌ |
cooldown_seconds |
float |
The minimum number of seconds between allowed executions.. | ❌ |
The Refs column marks possibility to parametrise the property with dynamic values available
in workflow
runtime. See Bindings for more info.
Available Connections¶
Compatible Blocks
Check what blocks you can connect to Rate Limiter
in version v1
.
- inputs:
Multi-Label Classification Model
,Dimension Collapse
,Classification Label Visualization
,Background Color Visualization
,Dynamic Crop
,Clip Comparison
,Segment Anything 2 Model
,Absolute Static Crop
,LMM For Classification
,Image Blur
,Roboflow Dataset Upload
,CogVLM
,Circle Visualization
,OCR Model
,Clip Comparison
,Template Matching
,SIFT Comparison
,Multi-Label Classification Model
,Path Deviation
,OpenAI
,Stitch OCR Detections
,Detections Stitch
,QR Code Detection
,Pixel Color Count
,Detections Stabilizer
,Path Deviation
,Line Counter
,VLM as Classifier
,Time in Zone
,Model Comparison Visualization
,Stitch Images
,Bounding Box Visualization
,Keypoint Detection Model
,Moondream2
,Continue If
,Color Visualization
,Slack Notification
,LMM
,Llama 3.2 Vision
,Instance Segmentation Model
,VLM as Detector
,Time in Zone
,Byte Tracker
,Detections Filter
,YOLO-World Model
,Barcode Detection
,Grid Visualization
,SmolVLM2
,Stability AI Inpainting
,Cosine Similarity
,Keypoint Detection Model
,Dot Visualization
,Google Gemini
,Detections Merge
,CLIP Embedding Model
,Dynamic Zone
,Size Measurement
,Property Definition
,Roboflow Custom Metadata
,Data Aggregator
,VLM as Classifier
,Detections Classes Replacement
,Gaze Detection
,Object Detection Model
,Corner Visualization
,Roboflow Dataset Upload
,Image Preprocessing
,Image Slicer
,Byte Tracker
,Line Counter
,Label Visualization
,Bounding Rectangle
,Identify Outliers
,Single-Label Classification Model
,First Non Empty Or Default
,Webhook Sink
,Cache Get
,Mask Visualization
,Delta Filter
,Google Vision OCR
,Twilio SMS Notification
,Buffer
,Detection Offset
,Model Monitoring Inference Aggregator
,Florence-2 Model
,Stability AI Image Generation
,Cache Set
,Identify Changes
,Crop Visualization
,JSON Parser
,VLM as Detector
,Velocity
,OpenAI
,Dominant Color
,Perspective Correction
,SIFT Comparison
,Relative Static Crop
,Ellipse Visualization
,Reference Path Visualization
,Anthropic Claude
,Blur Visualization
,Pixelate Visualization
,Email Notification
,Expression
,CSV Formatter
,Keypoint Visualization
,Camera Focus
,Single-Label Classification Model
,Qwen2.5-VL
,Florence-2 Model
,Detections Transformation
,Image Convert Grayscale
,Image Threshold
,Trace Visualization
,Detections Consensus
,Polygon Visualization
,Triangle Visualization
,Environment Secrets Store
,Halo Visualization
,Polygon Zone Visualization
,Local File Sink
,Rate Limiter
,Instance Segmentation Model
,Camera Calibration
,SIFT
,Image Contours
,Line Counter Visualization
,Image Slicer
,Byte Tracker
,Distance Measurement
,Object Detection Model
- outputs: None
Input and Output Bindings¶
The available connections depend on its binding kinds. Check what binding kinds
Rate Limiter
in version v1
has.
Bindings
Example JSON definition of step Rate Limiter
in version v1
{
"name": "<your_step_name_here>",
"type": "roboflow_core/rate_limiter@v1",
"cooldown_seconds": 1.0,
"depends_on": "$steps.model",
"next_steps": [
"$steps.upload"
],
"video_reference_image": "$inputs.image"
}