Skip to content

Commit ce03486

Browse files
committed
1 parent 00dfbbf commit ce03486

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

adminforth/documentation/docs/tutorial/08-Plugins/17-bulk-ai-flow.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,4 +423,25 @@ If you are processing large sets of data, you might want to limit the number of
423423
424424
And there won't be more than 5 parallel requests being handled.
425425
426+
## Confirming long-running generations
426427
428+
For very large datasets, you can pause generation at specific checkpoints so users can review results before continuing.
429+
Use the `askConfirmation` option to define confirmation breakpoints by processed record count.
430+
431+
```ts
432+
new BulkAiFlowPlugin({
433+
actionName: 'Generate descriptions',
434+
// ...adapters + fields
435+
436+
//diff-add
437+
askConfirmation: [
438+
{ afterRecords: 10 },
439+
{ afterRecords: 30 },
440+
{ everyRecords: 1000 },
441+
],
442+
});
443+
```
444+
445+
**How it works:**
446+
- `afterRecords: N` — show a confirmation once, after the first $N$ records.
447+
- `everyRecords: N` — show a confirmation after every $N$ records.

0 commit comments

Comments
 (0)