21
What would you do if a background worker only crashes on large jobs?
Tap to write answer
0 words | 0 charsPress Enter ↵ to reveal
Your Attempt
0 wordsRefined Model Answer
ReferenceI would try to reproduce the issue with a large test job and inspect memory use, CPU, logs, and stack traces. Large-job crashes often come from resource exhaustion or an algorithm that does not scale well enough for the input size. The reason I start there is that the crash pattern itself usually points to the failing resource. I would also think about splitting the work into smaller chunks or adding backpressure. After I fix the bug, I would add monitoring and a regression test with a similarly large input.