Commit 4b6bf52
fix: discover agents/nodes before workflows to prevent duplicate DBOS registration
Workflows import agents via relative paths. When all three discovery
functions ran in parallel, the same agent file could be evaluated twice
(once by discoverAgents, once as a workflow dependency) before jiti
cached it, causing duplicate DBOS.registerWorkflow() calls.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 5c3250a commit 4b6bf52
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| 32 | + | |
| 33 | + | |
30 | 34 | | |
31 | 35 | | |
32 | 36 | | |
| |||
0 commit comments