An import can outlast a browser tab, a laptop connection, or the person who started it. Designing that experience means treating the import as a durable application job rather than a progress animation attached to one HTTP request. The interface must explain what the system knows, what it is still checking, and where to return for a trustworthy result.
This guide develops long running task interface design around a single example: importing a file of travel-package records into an application. The principles also apply to other bounded jobs, but the design decisions here concern import identity, observable progress, cancellation, recovery, and evidence of the final outcome.
Make job acceptance independent of the browser session
The first design decision is where responsibility changes hands. A browser can submit a file and receive a response, but it should not be responsible for keeping the import alive. The server needs a durable job record, controlled storage for the uploaded input, and a worker or equivalent process that can continue after the initial connection disappears. A spinner in the initiating tab is merely one view of that work.
Distinguish the act of accepting a request from finishing its work. An accepted receipt means the application has recorded enough information to identify the request and decide what happens next. It does not mean any package record has been imported. If input storage or the job record cannot be committed reliably, the interface must not display a confident acceptance message merely because the upload progress reached 100%.
Give the person a receipt they can use later
After confirmed acceptance, show a stable job reference, the chosen file name, the initiating account, submission time, and a link to a job detail page. A useful confirmation reads: “Import request received. Processing may continue after you close this page.” Include a clear action to view status and explain that results remain available only according to the application's retention policy. The receipt should survive reloads, sign-in changes within the authorized account, and navigation away from the form.
Upload progress and import progress must remain separate. “File uploaded” describes bytes delivered to an intake endpoint; “Job accepted” describes a stored request; “Processing” describes work on individual records. Even when these transitions happen quickly, presenting them as one percentage invites mistaken conclusions about records that have not yet been examined.
Specify the durability boundary before drawing the screen
The engineering team should decide which transaction creates the job identifier, how incomplete uploads are discarded, what happens when a queue is unavailable, and how a worker claims work without two workers committing the same record. These are design dependencies because the UI cannot promise a durable receipt until the underlying contract supports one. A queued task that exists only in a volatile process is not equivalent to a committed job record.
Resumable application jobs depend on durable checkpoints and stable request identity, not on a browser remembering its last progress indicator. Those checkpoints must support recovery without confusing repeated processing attempts with additional completed work.
For broader application architecture, see TravelTech365's web application development overview. The narrower concern here is the user-facing evidence for a single import that may outlive multiple visits to the application.
Give every import state a precise meaning
A background task status design should begin with a state contract, not a collection of attractive status colors. At minimum, distinguish accepted, queued, processing, partial, completed, and failed. State labels should answer whether work has started, whether the outcome is final, and whether any accepted records are usable. The following meanings are a proposed design contract, not claims about an existing system.
| State | Meaning | What the interface should show |
|---|---|---|
| Accepted | The request and input reference are durably recorded; execution is not established. | Receipt, job reference, submitted file, and an honest “not started” message. |
| Queued | The application has scheduled eligible work, but no active processing is confirmed. | “Waiting to process,” last status update, and no invented start time. |
| Processing | A worker has claimed work and reported a current checkpoint. | Verified counters, phase, last observation, and available actions. |
| Partial | Processing has ended, some records were accepted, and some were rejected or left unresolved. | Final counts, reasons, downloadable error report, and remediation choices. |
| Completed | The defined import workflow reached its success criteria with no unresolved records under that contract. | Final summary, record view, completion time, and scope of validation. |
| Failed | The workflow cannot finish under the current attempt; success criteria were not established. | Known committed work, unknown work, diagnostic reference, and safe next step. |
These states are not interchangeable with browser connectivity. “Disconnected” describes the user's ability to observe the job, not its processing state. Likewise, a request that times out can be accepted, queued, processing, or already terminal. Preserve the last confirmed state and mark its freshness rather than assigning “failed” to the job because a status request failed.
Define partial as a terminal outcome, not a vague warning
For this example, partial means the attempt has ended with a mixed result. During processing, a card may say “1,200 of 4,800 rows examined; 30 rejected so far,” but its state remains processing. When the job terminates, classify it as partial only if the configured policy permits committed successes alongside documented rejections. If policy requires all-or-nothing acceptance, rollback behavior and failure semantics must be specified instead.
Completed also needs a boundary. It may mean that records passed the application's import rules and were stored; it does not prove that an external travel supplier has confirmed inventory, availability, prices, or bookability. If a later supplier-validation stage exists, give it its own status and authoritative evidence. No payment outcome or booking confirmation should be inferred from this file-import status.
Preserve request identity and prevent duplicate starts
People often press Import again when a response is slow. A network retry can also replay the same submission without a visible click. A robust interface needs both restraint in the browser and enforcement on the server. Disabling a button while a request is in flight improves usability, but it cannot protect against reloads, multiple tabs, process restarts, or another device.
Assign an attempt identity before submission, such as a client-generated request key stored with the draft, and associate it with an authenticated account and the intended operation. The server should durably bind that key to one accepted job and reject conflicting reuse with different input or options. Replays of the same request should return the same job reference wherever the defined idempotency window and contract permit. The key is not an authorization credential or a public lookup token.
A practical submission design makes these decisions explicit:
- Record the file selection and import options, including target dataset and validation mode.
- Generate a stable submission key for this attempt before the first network call.
- Calculate or verify an input fingerprint on the server where feasible; do not trust the browser's filename as identity.
- Commit the input reference, request key, ownership, and job receipt using a defined consistency boundary.
- On a matching replay, return the original job reference rather than creating another import.
- For an intentional new import of the same file, require a new attempt and explain the duplicate-record policy separately.
Resolve unknown submissions before offering a fresh attempt
Suppose the browser sends Start, but the response disappears. The application does not know from the browser alone whether the request was accepted. The recovery screen should say “We couldn't confirm submission” and attempt an authenticated lookup using the original request key. If a matching job is found, open its detail page. If the lookup also fails, keep the outcome unknown; do not silently generate a new key and submit again.
Even a successful status read that finds no job does not by itself prove a delayed original request cannot commit later. A safe retry requires a server-side deduplication guarantee for the same key, or an explicit mechanism that definitively closes the first attempt. This distinction matters when upload processing, queue publication, and database transactions finish at different times. Present “Try checking again” separately from “Start a new import.”
Make progress a statement of measured evidence
Progress should expose what has actually been observed, not estimate completion from elapsed time alone. For a file import, useful fields include rows discovered, rows validated, rows committed, rows rejected, and records awaiting a decision. Label the denominator: “2,100 of 4,800 source rows validated” is clearer than “44% complete” when transformation and storage have not yet occurred. If the total is still being discovered, use a phase label and an indeterminate indicator.
A job may revisit a batch after worker recovery. If the UI adds every processing event to a counter, progress can exceed 100% or count duplicated records as successes. Instead, publish counters derived from durable checkpoints or reconciled record dispositions. Separate work attempted from unique records committed. A retry may increase effort without increasing the number of distinct imported records.
Show phases and outcomes, not artificial precision
A sensible sequence might be “Inspecting file,” “Validating rows,” “Writing accepted records,” and “Preparing results.” Each phase needs an explicit meaning and measurable evidence before a percentage is displayed. A final 100% should follow terminal reconciliation, not simply the worker's last batch. When processing includes unknown-duration downstream operations, “Processing; final checks pending” is more honest than an animated 99% that never resolves.
Present a concise summary plus details on demand. The main card can show status, measured count, start time if known, and last confirmed update. An expandable detail region can explain rejected-row categories, skipped duplicates, checkpoint versions, and relevant event times. Avoid exposing internal stack traces or personal data in messages meant for all authorized viewers.
Distinguish stale information from a stalled job
Poll an authenticated status endpoint at a considered interval, or use push updates with polling as a recovery path. Neither transport guarantees that every event arrives in order. Give responses a revision number or equivalent monotonic checkpoint so an older reply cannot overwrite newer state. Treat a lost connection as an observation problem, not proof that a worker stopped.
When the last refresh is old, display “Last confirmed update at 14:08; current progress unavailable” and offer Refresh. If the application defines an operational threshold for investigating stale worker heartbeats, label that as “Needs attention” or “Update delayed” only after a supporting server-side check. A heartbeat gap is a signal for investigation, not automatic evidence of failure.
Use both absolute times and plain language. “Updated 12 minutes ago” helps a quick scan, while a timestamp with a clear time zone helps support teams compare logs. If the viewer goes offline, retain the last known counts with a visible stale label. Never keep moving a visual progress bar merely to reassure someone while the evidence is unchanged.

Make cancellation a bounded request, not a promise of reversal
Long running import cancellation must describe what can still be stopped. A Cancel button should not immediately relabel the job cancelled if the worker may already be committing a batch. Instead, accept a cancellation request, show “Cancellation requested,” and continue checking for the authoritative final state. The server can mark a stop flag, but workers must check it at defined safe boundaries.
Those boundaries depend on the import transaction model. Before execution, cancellation may prevent work from starting. Between batches, it may stop future batches but leave earlier committed records intact. During a database transaction, the worker may complete or roll back that transaction according to its implementation; the interface cannot assume either. If external side effects are involved, cancellation cannot retroactively undo them without a separate, supported compensating action.
Explain the point of no return for each action
In the proposed interface, the cancellation dialog identifies the last confirmed checkpoint and the policy: “We will stop at the next safe checkpoint. Records already committed may remain.” After a request, the action becomes unavailable until its outcome is known. If the job reaches completed or partial before the stop takes effect, display that terminal outcome instead of manufacturing a cancelled result.
A distinct cancelled state is useful only when the server can verify execution stopped under its documented rules. Preserve whether cancellation occurred before any writes, after some writes, or while work remained uncertain. Provide a summary of committed records and any reconciliation still needed. “Undo import” should be a different operation with its own impact preview, permissions, identity, and failure handling; it is not an alternate label for Cancel.
Let people return securely and understand the result
An import dashboard should be the durable home of the job. Include a searchable list scoped to the signed-in user's permitted workspace, with filename, initiator, submitted time, current state, last update, and an action to open details. From the detail page, someone should be able to refresh, read final counts, inspect rejected items, and retrieve a result report without reopening the original tab.
Use server-side authorization for every job read and download, not just for the list page. An unpredictable job identifier is helpful for routing but is not an access rule. Check account, workspace, and role on each request, including downloads and any short-lived download links. Define how long input files, error reports, and audit summaries remain available, what is redacted, and what the interface says after an artifact expires.
Make progress announcements accessible without becoming noisy
Use actual text labels for accepted, queued, processing, partial, completed, and failed; never require color recognition. A progress indicator should expose an accessible name, its measured value when known, and the total it measures. For an indeterminate stage, announce the stage rather than inventing a numerical value. Ensure keyboard users can reach job details, cancellation, and report downloads with visible focus.
Announce meaningful transitions through a polite live region, such as “Import started” or “Import finished with 12 rejected rows.” Do not announce every poll or every one-percent change: repeated updates can drown out other screen-reader content. A user-triggered cancellation confirmation or serious error may warrant a more prominent announcement, while the full diagnostic text remains available in a persistent, navigable section.
When the user revisits a completed job, start with a short outcome summary rather than replaying old progress announcements. Place the primary result heading and the error-summary link in predictable reading order. If a session expires, preserve the requested destination through reauthentication when appropriate, then recheck authorization rather than assuming an old browser link grants access.
Walk through a hypothetical travel-package import
Consider an explicitly illustrative agency operations screen importing 4,800 package rows from a spreadsheet. Assume the file is syntactically readable, each row carries an internal source identifier, the destination can enforce uniqueness per workspace, and accepted rows are committed in independently recoverable batches. Those are design assumptions, not features of a named supplier or an existing TravelTech365 installation. The example contains no booking, payment, or supplier availability operation.
At 14:00 a user uploads the file. The upload completes, but the browser loses the response to Start. The screen retains submission key K-742 and asks the server whether it corresponds to a job. The lookup returns job J-318, already accepted and queued. The user bookmarks its details and closes the laptop. The server then processes the file without that browser connection.
When the user returns, the job is terminal with these reconciled record dispositions:
| Disposition | Rows | Evidence in the result |
|---|---|---|
| Imported | 4,620 | Stored destination record identifiers and committed batch references. |
| Rejected | 120 | Row numbers and validation reasons in a restricted error report. |
| Skipped as duplicates | 60 | Existing-record references under the configured duplicate policy. |
| Total accounted for | 4,800 | Reconciled to the input manifest, with no unresolved rows. |
The terminal label is partial, because 120 rows were rejected under the defined policy. “4,620 imported” refers to destination records verified as committed, not merely rows sent for writing. The 60 skipped rows are neither new imports nor unexplained failures. The report offers a filtered correction file for rejected rows and warns that uploading the original again is a new attempt subject to uniqueness checks. It does not offer a vague “Retry everything” button.
Test failure paths that a polished happy-path demo hides
First, imagine the worker crashes after committing a batch but before publishing the next progress event. The recovered worker must consult durable commit evidence rather than blindly repeating writes. Its checkpoint may lag, so the interface should tolerate temporary stale counts while the server reconciles them. A monotonic progress version prevents the late pre-crash update from replacing the newer result.
Second, suppose the database becomes unavailable midway through writing. The attempt could end failed with some known commits, or stay in a recoverable processing state, depending on the defined policy. Do not imply that “failed” means nothing was stored. The detail page should separate confirmed commits, confirmed rejections, and unresolved rows; support action depends on that evidence.
Third, consider two tabs submitting the same attempt key at nearly the same moment. Only server enforcement can prevent two jobs; button disabling is irrelevant across tabs. Finally, if the cancellation request races with completion, terminal job evidence determines what happened. The UI should explicitly report “Completed before cancellation took effect” when supported, rather than displaying two contradictory outcomes.
Write an evidence contract before implementation
One useful decision artefact is a small interface contract shared by design, frontend, backend, and operations teams. For each status response, define the job reference, requester scope, submission key reference, state, state revision, created time, last confirmed update, phase, count definitions, cancellation eligibility, and permitted result actions. The contract should distinguish absent data from zero: an unknown total is not zero rows, and a missing completion time is not evidence that completion failed.
A second artefact is a transition matrix. Record which state changes are allowed, which component authorizes them, and which durable evidence must exist first. For example, accepted may advance to queued; queued to processing; processing to partial, completed, or failed. Cancellation requested can be modeled as a separate command state or flag while the actual job continues toward a confirmed terminal outcome. Decide whether recovery restarts processing in the same attempt or creates an explicitly linked new attempt.
Keep an audit trail that answers the user's question
Store a bounded history of meaningful events: accepted receipt, queue admission, worker claim, durable batch checkpoint, cancellation request, terminal classification, and report publication. Link diagnostic correlation identifiers to the job while keeping sensitive row content out of general logs. The history should explain why two visible counts changed and which report is authoritative, without asking a user to interpret infrastructure jargon.
When storage and the queue cannot be updated in one atomic operation, design recovery for the gap. A committed job with delayed queue publication needs a discoverable queued or awaiting-dispatch condition, not a disappearance from the dashboard. Similarly, report generation can fail after record commits; in that case, show the verified import outcome separately from report availability and provide a controlled way to regenerate the report if supported.
Use an acceptance checklist grounded in observable behavior
The following checks turn interface intentions into verifiable outcomes. Run them with slow networks, interrupted sessions, repeated requests, large files, and permissions that differ between users. Each check should have an expected screen state and corresponding server evidence.
- Closing the browser after acceptance does not interrupt server-side import execution.
- An upload finishing without a durable receipt never appears as a confirmed accepted job.
- Accepted, queued, processing, partial, completed, and failed have distinct labels and documented meanings.
- A browser timeout leaves the submission outcome unknown until a trustworthy lookup or replay resolves it.
- Repeating the same request key cannot create a second job within the supported idempotency contract.
- Changing the input while reusing a request key produces a clear conflict rather than silent substitution.
- Progress counts reflect unique, reconciled row outcomes and cannot exceed the stated input total.
- Late or out-of-order status responses cannot overwrite a newer revision.
- A stale connection is visibly different from a terminal job failure.
- Cancellation is acknowledged as requested before the server confirms whether stopping succeeded.
- Completed-after-cancel races show the actual final result and any retained commits.
- Partial results explain imported, rejected, skipped, and unresolved records without hiding committed writes.
- Reports and job details are accessible only to correctly authorized users, including through direct links.
- Expiry of a report produces a clear explanation, not an unexplained broken download.
- Keyboard navigation, readable labels, progress semantics, and restrained live announcements work without color or animation.
- A reopened job leads to a useful final summary and correction path, not a fresh import by default.
For sign-off, keep three concrete artefacts together: the state transition matrix, a set of annotated screen states for both fresh and stale observations, and a test log showing request identity, checkpoint reconciliation, cancellation races, and authorized result retrieval. The import interface is successful when people can tell what was requested, what is known to have happened, what remains uncertain, and what action is safe next—even if they were absent for the entire run.
