f2
f2 ¶
Fixed Flow implementation that properly abstracts execution details.
Flow ¶
Flow(processor: Any, config: FlowConfig, process_id: Optional[str] = None)
Core flow implementation that wraps user-defined processors.
Source code in src/flow/core/f2.py
cancel
async
¶
execute
async
¶
execute(input_data: Optional[Dict[str, Any]] = None) -> FlowResult
Execute the flow and its dependencies.
Source code in src/flow/core/f2.py
240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 |
|
get_dependencies ¶
get_dependencies(dep_type: Optional[DependencyType] = None) -> Set[str]
Get set of dependency process IDs, optionally filtered by type.
Source code in src/flow/core/f2.py
register_to ¶
register_to(
parent_flow: "Flow",
required_deps: Optional[List[str]] = None,
optional_deps: Optional[List[str]] = None,
) -> None
Register this flow as a child of another flow.