This repository was archived by the owner on Apr 11, 2026. It is now read-only.
Commit 972b113
refactor(flowctl): remove duplicate cycle detection from DAG construction [fn-110.4]
Move cycle detection out of from_tasks() — callers now call detect_cycles()
explicitly. This eliminates the redundant Kahn's algorithm run during DAG
construction. Updated stats.rs to add explicit cycle check.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e6c99bf commit 972b113
2 files changed
Lines changed: 10 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
357 | 362 | | |
358 | 363 | | |
359 | 364 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 70 | + | |
79 | 71 | | |
80 | 72 | | |
81 | 73 | | |
| |||
552 | 544 | | |
553 | 545 | | |
554 | 546 | | |
555 | | - | |
556 | | - | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
557 | 550 | | |
558 | 551 | | |
559 | 552 | | |
| |||
0 commit comments