(blockId: string, notebooks: DeepnoteFile['project']['notebooks'])
| 426 | } |
| 427 | |
| 428 | function assertExecutableBlockExists(blockId: string, notebooks: DeepnoteFile['project']['notebooks']): void { |
| 429 | for (const notebook of notebooks) { |
| 430 | const block = notebook.blocks.find(b => b.id === blockId) |
| 431 | if (!block) { |
| 432 | continue |
| 433 | } |
| 434 | if (!executableBlockTypeSet.has(block.type)) { |
| 435 | throw new Error(`Block "${blockId}" is not executable (type: ${block.type}).`) |
| 436 | } |
| 437 | return |
| 438 | } |
| 439 | |
| 440 | throw new Error(`Block "${blockId}" not found in project`) |
| 441 | } |
| 442 | |
| 443 | async function resolveUpstreamExecutionBlockIds( |
| 444 | file: DeepnoteFile, |
no outgoing calls
no test coverage detected