EngineeringSample article
A failed job is part of the interface
Background work needs clear states, honest feedback and a route back when things go wrong.
Moving work into a background job changes when it happens. It does not remove the need to explain its outcome to the person who asked for it.
Name the states people need
Queued, running, finished and failed may be enough to begin. Each state should mean something stable. A spinner that runs forever is a missing decision, not useful feedback.
Explain recovery
Tell people whether they can retry safely and whether any part of the operation already happened. Avoid offering a retry button until the system can distinguish a fresh attempt from a duplicate.
- Keep a stable operation reference.
- Show the last meaningful state.
- Make the next available action clear.
Test the wait
Try a deliberately slow job, a failed job and a browser refresh during processing. Watch whether the interface still gives an honest account of the work. These are ordinary user journeys.
A note from the room.This is a placeholder article for testing the reading experience.
↑