Complex products · Step 6 · 9 min read
Background jobs, queues and notifications
Some work takes minutes, not seconds: a monthly plan for 1,760 turbines, an export, a phone full of readings syncing after a shift without signal. When to send work to the background, the states a job goes through, how to tell people it finished (or didn't) without burying them in notifications, and what the technician's phone does while it waits for signal.
Nobody should watch a spinner for four minutes. In business software, some work is too big to finish while the person waits: generating next month's maintenance plan, moving 300 work orders to another crew, exporting a year of inspections. Let the work run on its own while the person carries on, and tell them clearly when it's done, half done or stuck. A faster spinner won't help.
What you'll be able to do after reading:
- Decide when an action should run in the background instead of on screen
- Design the states of a background job and the place where people find it
- Choose who gets told when a job ends, through which channel, and how loudly
- Design the outbox of an app that works offline
1. When to send work to the background
Jakob Nielsen's three response-time limits are still the reference: "0.1 second is about the limit for having the user feel that the system is reacting instantaneously", "1.0 second is about the limit for the user's flow of thought to stay uninterrupted", and "10 seconds is about the limit for keeping the user's attention focused on the dialogue" (Nielsen, Response Times: The 3 Important Limits, NN/g, 1993).
Past ten seconds, people stop watching and start doing something else, so let them. A background job is work the system runs on its own, after the person asked for it, while they use the rest of the product. Jobs wait their turn in a queue, a line of jobs that the servers take one by one (or a few at a time).
In Gale, these go to the background:
| Action | Who | Why it's slow |
|---|---|---|
| Generate the maintenance plan for a month | Planner | 1,760 turbines, each with its own schedule |
| Reassign 300 work orders to another crew | Supervisor | Each one checks permits, parts and the crew's calendar |
| Export a year of inspection reports | Head of O&M's team | Thousands of photos |
| Import 2,000 stock lines from a spreadsheet | Warehouse clerk | Each line is checked against the stock system |
Rule of thumb: if the team can't promise the result in about ten seconds every time, design it as a job from the start. Adding a job later means changing the screen, the messages and the permissions.
2. A job has states too
A job is an object, like a work order, and it moves through its own states. Showing them is what makes waiting bearable.
- Queued
"Reassign 300 work orders · waiting to start (2 jobs ahead)"
Accepted, so nobody presses again - Running
"212 of 300 work orders · about 1 min left"
Count records, not just a bar - Ended
Done · Done with problems · Failed · Cancelled
"294 reassigned · 6 need a new permit" opens the 6
- Queued: accepted, waiting its turn. Say so, or people press the button again.
- Running: with progress the person can trust. NN/g's advice is a "percent-done indicator for delays of 10 seconds or more", and a percent-done indicator also suits a job that processes "a batch of documents or records" (Sherwin, Progress Indicators, NN/g, 2014). In Gale, count the records: "212 of 300 work orders".
- Done, done with problems, failed or cancelled. "Done with problems" is the partial failure from System and integration errors, and it needs the same per-record list.
Give jobs one place to live: a Jobs panel in Gale Console, reachable from anywhere, listing what each person started, with state, progress and a link to the result. Closing the tab must not cancel the job, and coming back tomorrow must show what happened.
While a job runs, the records it touches are locked (others can see them but not change them) or marked as changing. Otherwise Duarte edits a work order that the job is about to overwrite.
3. Telling people the job ended
A notification is a message the product sends about something that happened, often while the person is doing something else. NN/g splits them in two: action-required notifications "are often urgent and should be intrusive", while passive ones "are typically not urgent and should be less intrusive" but "can easily be missed" (Flaherty, Indicators, Validations, and Notifications, NN/g, 2024).
IBM's Carbon design system names the forms: a toast is a short message that slides in and out and works "with system-generated messages that do not correspond to a specific section of the UI"; a notification panel collects many system messages and is "helpful for users who receive a large number of system-generated notifications" (Carbon, Notification pattern). Carbon also warns: "Don't use notifications that dismiss on a timer for critical or emergency messages."
For each job, decide three things:
- Who. The person who started it, always. Sometimes others: when 300 work orders move crews, the technicians on both crews need to know their week changed.
- How loud. Done: passive, a toast and an entry in the panel. Done with problems or failed: action-required, and it stays until someone opens it.
- Where it leads. Every notification opens the result: the plan, the list of failed rows, the file. "Your export is ready" without a link is a riddle.
| Who | When | How loud | What it opens |
|---|---|---|---|
| Duarte, supervisor (started it) | Done | Passive: toast + panel | Crew 12's week, with the moved work orders marked |
| Duarte, supervisor | Done with problems | Action-required: stays until opened | The 6 work orders that need a new permit |
| Crew 7 and Crew 12 technicians | Done, if their week changed | Passive, grouped: one message per person | Their own list of work orders |
| Sofia, safety officer | Done with problems | Passive, in the morning digest | Permits to reissue for Crew 12 |
4. Not everything deserves a notification
Notifications compete for the same attention. In Gale, Marta in the control room already acknowledges about 200 turbine alarms a shift (an alarm is a warning sent by the turbine itself, such as overheating). Those live in Gale Ops and follow their own rules. If Gale's notifications about work look like alarms, or arrive as often, people learn to dismiss both.
Three ways to keep the count down:
- Group them. One "Plan for December is ready · 3 work orders need parts" beats four separate messages.
- Set defaults per role. A planner wants plan and parts updates; a technician wants only changes to their own work orders.
- Let people tune them. Carbon's accessibility guidance is that "users should be able to manage or limit noncritical notifications" (Carbon). Keep the critical ones out of the off switch, and say which they are.
5. The queue in the technician's pocket
Gale Field works without signal. Inês closes steps and takes photos in the nacelle (the housing at the top of the tower), where there's no network; the app keeps everything on the tablet and sends it when she's back at the van. That's a queue too, on the device, and it needs the same honesty.
Gale Field · Outbox · Waiting to send: 2 steps, 5 photos
Signal back at 12:40 · sending now. Anything not sent yet is saved on this tablet.
| Item | Work order | State |
|---|---|---|
| Step 4 closed · torque readings (60) | WO-2026-018734 · CA-07-T14 | Sent at 12:41 |
| Photos of the yaw bearing (5) | WO-2026-018734 · CA-07-T14 | Waiting to send |
| Steps 5 and 6 closed | WO-2026-018734 · CA-07-T14 | Waiting to send |
| 2 oil readings | WO-2026-018741 · CA-07-T02 | Conflict: reassigned to Crew 12 at 11:05 by Duarte. Your readings were kept and sent to him. |
- An outbox people can see: "Waiting to send: 2 steps, 5 photos". A number on the tab, a list behind it.
- Proof that it arrived: each item moves from Waiting to Sent, with the time. Inês shouldn't leave the site wondering.
- Conflicts said plainly. While she was offline, Duarte moved her next work order to another crew. When the phone syncs, it shows: "WO-2026-018741 was reassigned to Crew 12 at 11:05. Your 2 readings were kept and sent to Duarte." Never overwrite either person's work in silence.
- A warning before data is at risk: logging out, or a full memory, with items still in the outbox.
Defaults, drafts and autosave covers the save status itself ("Offline · saved on this tablet"). This section is about what happens after: getting the data out of the pocket.
6. Common mistakes
- A spinner for a job that takes minutes, with no way to leave the page.
- Cancelling the job when the tab closes.
- "Done" with no link to the result.
- A toast that disappears by itself for a failure.
- Notifying everyone about everything, the same way.
- An offline app with no visible outbox, so nobody knows what arrived.
- Overwriting changes made by someone else while the device was offline.
7. Vocabulary
| Term | Meaning |
|---|---|
| Background job | Work the system runs on its own after it was asked, while the person carries on |
| Queue | A line of jobs waiting their turn to run |
| Percent-done indicator | A progress bar or count that shows how much is finished |
| Lock | A rule that stops others changing a record while a job works on it |
| Notification | A message the product sends about something that happened |
| Action-required / passive | A notification that needs the person to act, or one that only informs |
| Toast | A short message that slides in and out of the screen |
| Notification panel | One place that lists all the product's notifications |
| Alarm | A warning sent by the equipment itself, such as a turbine overheating |
| Outbox | The list of changes waiting on a device to be sent |
| Conflict | Two people changed the same record without seeing each other's change |
8. Try it (no tools needed)
A supervisor reassigns 300 work orders from Crew 7 to Crew 12. The job takes about four minutes; 6 work orders fail because their permits are tied to Crew 7.
- On paper, draw a row of boxes for the job's states, from the click to the end. Write the exact text the Jobs panel shows in each.
- Write a table with three columns: who is notified, how loud (passive or action-required), and what the notification opens. Include the supervisor and both crews.
- Write the notification for the end of the job, in two lines.
- Check: does the "done with problems" text give the number 6 and lead to those 6? Does anyone get a message they can't act on? If so, remove them or make it passive.
It's good when someone who didn't press the button can tell, from your notification alone, whether their week changed.
Reflection questions: Which product you use tells you an export is ready but makes you hunt for the file? Which notifications have you turned off, and why?
9. If you already practise
- List every action in your product that can take more than ten seconds on the largest customer's data, not on the test data. Those are your jobs.
- Make the job a real object in the design system: one Jobs panel pattern, one set of states, one notification template.
- Test offline sync on a real device in a place without signal, then walk back into coverage. Watch what the person does in the first minute.
Checklist
Learn more
- NN/g: Response Times: The 3 Important Limits (Nielsen, 1993)
- NN/g: Progress Indicators Make a Slow System Less Insufferable (Sherwin, 2014)
- NN/g: Indicators, Validations, and Notifications (Flaherty, 2024)
- Carbon Design System: Notification pattern
Books, courses and videos to go deeper
- Designing with the Mind in MindJeff JohnsonBook · 3rd edition, Morgan Kaufmann, 2020 · on attention and how people experience time at the screen (Amazon)
- Release It!Michael T. NygardBook · 2nd edition, Pragmatic Bookshelf, 2018 · on queues and jobs from the developer's side
Book links go to Amazon. As an Amazon Associate I earn from qualifying purchases, at no extra cost to you.
Related
System and integration errors · Perceived performance with big data · Defaults, drafts and autosave · Selection and bulk actions · Feedback while waiting · Interface states: empty, loading, error, success