Menu

Resume a failed batch from the failed chunk, not from record one
📰

Resume a failed batch from the failed chunk, not from record one

DEV Community: api·Adan Potyondy·15 days ago
#RhYHsY0V
#devtoapi#devto#dev#replay#failed
Long article (711 words) — no AI summary yet.
Reading 0:00
15s threshold

Originally published on the Neblex Blog .

Every integration can move a record from A to B. The difference shows up the morning after something broke overnight.

A payout file with half a million rows failed at row 480,000 because the ERP rate-limited the connection at two in the morning. Now someone has to decide: rerun the whole job and hope the first 480,000 rows are safe to write twice, or hand-pick the tail and load it by hand.

Both options cost a day. The first one also risks doubled journal entries, which is a far worse problem than a late one.

What resuming from the failed step requires

Resuming from the failed step sounds like a feature toggle. It's closer to an architecture decision, and it has three parts.

Checkpoints inside the run. Bulk steps process records in chunks and record where each chunk ended. A restart reads the last checkpoint and continues from there, so the 480,000 rows that already landed stay untouched.

An event-sourced run history.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.