(taskId: string)
| 276 | * Useful before reading output to ensure all data is flushed. |
| 277 | */ |
| 278 | export async function flushTaskOutput(taskId: string): Promise<void> { |
| 279 | const output = outputs.get(taskId) |
| 280 | if (output) { |
| 281 | await output.flush() |
| 282 | } |
| 283 | } |
| 284 | |
| 285 | /** |
| 286 | * Evict a task's DiskTaskOutput from the in-memory map after flushing. |