**Not ready to merge as it stands.** `export_job.py` has three defects that should block it, but all are small, and fixing them with tests is roughly half a day's work. I only read this one file and did not run anything or open `test_export_job.py`; the test coverage I describe is taken from the docstring.

## Must fix before merge

1. **A failed export looks like a successful one** (`export_job.py:56-57`). The `except Exception` logs one line and the script exits with code 0.
   - Example: the finance endpoint returns 503 at 02:00. Cron records success, no alert fires, and finance has no file.
   - Expected: a non-zero exit with a traceback. Use `log.exception(...)` and re-raise, or drop the `except` entirely.
   - This is worse because `run()` always exports "yesterday" (`:47`), so a missed day is never picked up again. Add a date argument so a failed day can be re-run.

2. **Customer email addresses are written to the log** (`:52`). Every night's full list of emails goes into the log line. Log the count and the date only.

3. **The upload can hang forever** (`:42`). `requests.post` has no timeout, so a stalled connection keeps the job and its database connection open indefinitely. Add `timeout=(10, 120)` or similar.

4. **Tests cover none of the above.** The docstring says the tests check only the CSV header and one row. By your own standards this needs at least:
   - the date window passed to the query;
   - upload failure propagating out of `run()`;
   - the connection being closed on failure;
   - amount formatting.

## Should fix, or confirm it is not a problem

- **Amount formatting is inconsistent** (`:37`). `amount_cents / 100` writes 1000 as `10.0`, 1050 as `10.5` and 1099 as `10.99`. Use `f"{cents // 100}.{cents % 100:02d}"` or `Decimal`.
- **Non-two-decimal currencies may be wrong.** If any invoice is in a currency like JPY, dividing by 100 gives the wrong amount. Confirm what currencies appear.
- **"Yesterday" depends on two clocks** (`:47`, `:28`). `date.today()` uses the server's timezone, and the `paid_at` comparison uses the database session's timezone if the column is `timestamptz`. If they differ, invoices paid near midnight are skipped or exported twice. Build explicit timezone-aware bounds in the timezone finance expects.
- **No logging configuration.** Run as a script, the `log.info` lines go nowhere, and errors print as a bare message with no timestamp. Add `logging.basicConfig` under `__main__`.
- **Importing the module requires an environment variable** (`:16`). `FINANCE_UPLOAD_URL` is read at import time, so tests fail with `KeyError` unless it is set. Read it inside `upload()` or pass it in.
- **No authentication on the upload.** Nothing is sent besides the file. Confirm the endpoint is protected some other way, since the file contains customer emails and payment amounts.
- **Spreadsheet formula injection.** `customer_email` is customer-supplied and written as-is. If finance opens the CSV in Excel, a value starting with `=`, `+`, `-` or `@` runs as a formula. Prefix such values with `'`.
- **Export files are never deleted.** They accumulate in `/var/exports` with customer data in them. Delete after a successful upload or set a retention period.

## What is fine

- The query is parameterised, and the half-open date range (`>=` start, `<` end) is correct.
- The three functions each do one thing.
- The connection is closed in `finally`.

VERDICT: NOT READY
