A job discovery run asks several sources the same broad question: what openings are available? One source may return results, another may return an empty list, and a third may time out. Those are three different outcomes.
If every failure becomes an empty list, the dashboard can confidently say “no new jobs” when part of the search never completed. If one failure stops the entire run, useful results from healthy sources disappear too. A partial result needs a visible, honest state of its own.
Give each source an explicit outcome
Return a small record with a status, the usable items, and enough timing information to describe freshness. Keep error categories suitable for display separate from detailed diagnostic logs.
{
"source": "example-careers",
"status": "unavailable",
"items": [],
"error_kind": "timeout",
"last_success_at": "2026-10-22T14:30:00Z"
}
An empty successful response means the request completed and found no matches. An unavailable response means the system does not know what that source would have returned. Avoid replacing that uncertainty with a successful-looking zero.
Isolate failures at the connector boundary
Each connector should translate its expected network, authentication, rate-limit, and parsing failures into a result the caller understands. A successful connector can then continue through normalization and deduplication even if another connector fails.
Python’s concurrent futures API can collect independent work as it finishes. The important design choice is how exceptions become visible outcomes, rather than which task happens to finish first.
outcomes = []
for future in as_completed(pending):
source = pending[future]
try:
items = future.result()
except ConnectorUnavailable as error:
outcomes.append(unavailable(source, error.kind))
else:
outcomes.append(success(source, items))
This is a sketch of the collection step. The connector still needs actual network timeouts. A timeout while waiting on a future does not necessarily stop its running work, and a broad catch that hides programming errors can make a broken adapter look like an ordinary outage.
Spend retries on recoverable failures
A retry may help after a temporary connection failure. Repeating a request with invalid credentials usually cannot. Keep retry counts bounded, respect the provider’s rate-limit guidance, and make retries safe when a source can return the same record again.
Record a run identifier and the policy version that produced its result. That gives a reviewer a way to compare an interrupted run with its retry without treating every repeated sighting as a new opening. Stable posting identities help make that behavior predictable.
Show coverage beside the count
Consider a fictional run with 12 usable listings from two sources and one unavailable source. “12 listings · 2 of 3 sources checked” tells a more complete story than either “success” or “failed.” A nearby detail can name the unavailable source, its last successful check, and whether a retry is available.
When showing results from an earlier successful run, keep their timestamp visible. Fresh data from one source and older data from another can coexist, but the interface should make the distinction readable. Avoid placing secrets, full request headers, or private query parameters in user-facing error messages.
Verify partial success deliberately
The runnable exercise below gives six connectors controlled responses. One returns two distinct records plus a duplicate, one returns an empty list, one always times out, one rejects authentication, one returns malformed data, and one succeeds after a timeout.
The connectors are local functions. No credentials, external calls, or packages are required.
Download the partial-failure example ↗Inspect the complete Python source ↗python partial_sources.py
| Source | Outcome | Attempts | Items |
|---|---|---|---|
| Healthy | Success | 1 | 2 |
| Empty | Success | 1 | 0 |
| Timeout | Unavailable | 2 | 0 |
| Authentication | Unavailable | 1 | 0 |
| Malformed | Unavailable | 1 | 0 |
| Recovered | Success after retry | 2 | 1 |
The final summary is 3 items · 3 of 6 sources checked, with complete: false. An empty response counts toward coverage because the source completed successfully. A failed source does not. Repeated IDs are collapsed within each successful source; matching across different sources remains a separate deduplication decision.
Inspect the complete expected JSON
{
"coverage": "3 of 6 sources checked",
"item_count": 3,
"complete": false,
"sources": [
{
"source": "authentication",
"status": "unavailable",
"reason": "authentication",
"attempts": 1,
"items": []
},
{
"source": "empty",
"status": "ok",
"attempts": 1,
"items": []
},
{
"source": "healthy",
"status": "ok",
"attempts": 1,
"items": [
{
"id": "a"
},
{
"id": "b"
}
]
},
{
"source": "malformed",
"status": "unavailable",
"reason": "invalid_payload",
"attempts": 1,
"items": []
},
{
"source": "recovered",
"status": "ok",
"attempts": 2,
"items": [
{
"id": "recovered-1"
}
]
},
{
"source": "timeout",
"status": "unavailable",
"reason": "timeout",
"attempts": 2,
"items": []
}
]
}

Use controlled fixtures for an empty success, a timeout, an authentication failure, and a malformed response. Confirm that healthy results remain available, failed sources are named, and retrying does not duplicate records or overwrite user notes.
This is one of the reliability questions behind Job Applier’s multi-source workflow. The same principle appears in a smaller form in this site’s writing feed: useful content should survive an unavailable dependency, with its limitations still visible.
Keep the real network boundary explicit
The example retries a synthetic timeout at most once. Authentication and payload errors are not retried, and unexpected programming exceptions propagate. A real adapter must translate its HTTP client's exceptions into those outcomes, use request timeouts, and apply bounded backoff that respects the provider's rate limits.
as_completed collects completed futures; it does not cancel a blocked network request. Leaving a thread-pool context also waits for running work. Set timeouts at the network call itself and use an overall deadline or cancellation-aware design when a run must finish within a strict budget. The fixture makes no wall-clock or production-latency claim. Python documents these distinctions in the concurrent.futures reference.