SpinTheMic
Pro

Interview practice question

Scheduled job runs overlap

Backend Engineering · Concurrency · Intermediate

A job scheduled every minute sometimes takes longer than a minute, and two runs overlap and corrupt data. How do you fix it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Prevent concurrent runs.
  • Skip if previous still running.
  • Lock (local or distributed).
  • Make job idempotent.
  • Process incrementally with checkpoints.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics