๋ณธ๋ฌธ์œผ๋กœ ๊ฑด๋„ˆ๋›ฐ๊ธฐ
ๅฐ้พ™่™พๅฐ้พ™่™พAI
๐Ÿค–

Batch

Process multiple items with progress tracking, checkpointing, and failure recovery.

ไธ‹่ฝฝ1.9k
ๆ˜Ÿๆ ‡2
็‰ˆๆœฌ1.0.0
่‡ชๅŠจๅŒ–่„šๆœฌ
ๅฎ‰ๅ…จ้€š่ฟ‡

ๆŠ€่ƒฝ่ฏดๆ˜Ž


name: Batch description: Process multiple items with progress tracking, checkpointing, and failure recovery.

Before Starting

  1. Dry run: Test with 2-3 items first
  2. Count: "Processing 47 items, ~2 min estimated"
  3. Confirm destructive ops: "This will delete 200 files. Proceed?"

During Processing

  • Progress every 10 items: "23/47 complete (49%)"
  • Checkpoint every 10-50 items: Save state to resume if interrupted
  • On error: Log it, continue with rest (don't abort entire batch)

After Completion

Always report:

โœ… 44 succeeded
โŒ 3 failed (saved to failed.json for retry)

Error Handling

ErrorAction
Timeout, rate limitRetry 3x with backoff (1s, 2s, 4s)
Bad format, missing dataSkip, log, continue
Auth failed, disk fullAbort entire batch

Check strategies.md for parallel vs sequential decision matrix. Check errors.md for retry logic and rollback patterns.


Related: For delegating to sub-agents, see delegate.

ๅฆ‚ไฝ•ไฝฟ็”จใ€ŒBatchใ€๏ผŸ

  1. ๆ‰“ๅผ€ๅฐ้พ™่™พAI๏ผˆWeb ๆˆ– iOS App๏ผ‰
  2. ็‚นๅ‡ปไธŠๆ–นใ€Œ็ซ‹ๅณไฝฟ็”จใ€ๆŒ‰้’ฎ๏ผŒๆˆ–ๅœจๅฏน่ฏๆก†ไธญ่พ“ๅ…ฅไปปๅŠกๆ่ฟฐ
  3. ๅฐ้พ™่™พAI ไผš่‡ชๅŠจๅŒน้…ๅนถ่ฐƒ็”จใ€ŒBatchใ€ๆŠ€่ƒฝๅฎŒๆˆไปปๅŠก
  4. ็ป“ๆžœๅณๆ—ถๅ‘ˆ็Žฐ๏ผŒๆ”ฏๆŒ็ปง็ปญๅฏน่ฏไผ˜ๅŒ–

็›ธๅ…ณๆŠ€่ƒฝ