**Not mergeable as written, but about an hour away.** The structure is good: small single-purpose functions, a parameterised query, and a clean half-open date range. Three things need fixing before merge, and each is a few lines. I only read `export_job.py`; I did not run anything or open `test_export_job.py`.

## Fix before merging

1. **A failed export looks like a successful one** (`export_job.py:56-57`). The `except Exception` logs one line and returns, so the process exits 0.
   - **Concrete case:** the finance endpoint returns 503 at 02:00. Cron sees success, no alert fires, and finance has no file for that day.
   - **Fix:** use `log.exception(...)` and re-raise (or `sys.exit(1)`).
   - **Related gap:** `run()` hard-codes "yesterday", so a missed day cannot be re-run. Accepting an optional date argument solves this.

2. **The upload can hang forever** (`export_job.py:42`). `requests.post` has no timeout.
   - **Concrete case:** the endpoint accepts the connection and never responds. The job sits there indefinitely and never reaches the error path.
   - **Fix:** add `timeout=(10, 120)` or similar.

3. **Every customer email is written to the logs** (`export_job.py:52`). On a day with 5,000 paid invoices, that is 5,000 addresses in one log line, in whatever log system retains it.
   - **Fix:** log the count and the day only.

## Check before merging

- **Which timezone "yesterday" means.** `date.today()` uses the server's clock, and the `paid_at` comparison uses the database session's timezone. If the server is on UTC and finance works in, say, US Eastern, an invoice paid at 8pm Eastern on the 13th lands in the file for the 14th. If everything is UTC and finance expects UTC, this is fine.
- **Logging setup.** Nothing in the file configures logging. Run directly from cron, the `info` lines are dropped and only the error message reaches stderr. If a wrapper configures it, ignore this.

## Tests

By the docstring, the tests cover the CSV header and one row. The parts that can hurt (upload failure, the date window, `run()` exiting non-zero on error) are untested. I'd add three tests alongside the fixes:
- `run()` raises or exits non-zero when the upload fails.
- `fetch_invoices` passes `[day, day+1)` to the query.
- An amount such as 2000 cents is formatted correctly.

## Smaller items, fine as follow-ups

- **Amount formatting** (`export_job.py:37`): 2000 cents is written as `20.0` and 1990 as `19.9`. Use `f"{amount_cents / 100:.2f}"` if finance's importer expects two decimals. Zero-decimal currencies such as JPY would also be divided by 100 incorrectly, if you have any.
- **Import-time env read** (`export_job.py:16`): `os.environ["FINANCE_UPLOAD_URL"]` runs on import, so any test importing the module needs the variable set. Reading it inside `upload()` avoids that.
- **Upload authentication:** the upload sends no auth header. That is fine if the URL carries a token or the endpoint is network-restricted.

VERDICT: READY WITH CHANGES
