MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / getBlockedTaskPaths

Method getBlockedTaskPaths

src/utils/DependencyCache.ts:624–639  ·  view source on GitHub ↗

* Get blocked task paths (tasks that depend on this task)

(taskPath: string)

Source from the content-addressed store, hash-verified

622 * Get blocked task paths (tasks that depend on this task)
623 */
624 getBlockedTaskPaths(taskPath: string): string[] {
625 if (!this.indexesBuilt) {
626 tasknotesLogger.warn(
627 "DependencyCache: getBlockedTaskPaths called before indexes built, building now...",
628 {
629 category: "stale-data",
630 operation:
631 "dependencycache-getblockedtaskpaths-called-indexes-built-building-now",
632 }
633 );
634 this.buildIndexesSync();
635 }
636
637 const blocked = this.activeDependencyTargets.get(taskPath);
638 return blocked ? Array.from(blocked) : [];
639 }
640
641 /**
642 * Check if a task is blocked by dependencies (status-aware)

Callers

nothing calls this directly

Calls 3

buildIndexesSyncMethod · 0.95
warnMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected