`export_job.py` is not ready to merge as it stands: three defects can lose or stall a night's export or leak customer emails. They are small fixes, so a merge tomorrow is still realistic if you fix them first.

I reviewed by reading the file only; nothing was run. The docstring cites `test_export_job.py`, but that file is not in the working directory, so I could not check the tests.

## Must fix before merge

1. **A failed export looks like a success (high).** `run()` catches every exception, logs one line and exits with status 0 (lines 56-57). If the finance endpoint returns a 500 at 02:00, cron sees a clean run, no alert fires, and that day's invoices never reach finance. Log with `log.exception` and re-raise, or exit non-zero.

2. **The upload can hang forever (high).** `requests.post` has no timeout (line 42). If the endpoint accepts the connection and then stalls, the job never finishes and holds its database connection open. Add `timeout=(connect, read)`.

3. **Customer emails are written to the log (high, privacy).** Line 52 logs every `customer_email` in the batch. Log the count only.

4. **No way to re-run a missed day (medium, high when combined with 1).** The date is hard-coded to yesterday (line 47). If Tuesday's run fails, the only way to export Tuesday is to edit the code. Accept an optional date argument.

5. **Tests cover only the CSV header and one row (medium).** That is what the docstring says; nothing covers the date window, an upload failure or `run()`. At minimum, add a test that a failed upload makes the job fail, and one for the day boundaries.

## Should fix, can follow shortly after

6. **Logging is never configured (medium).** With no `basicConfig`, running the script drops all `info` messages, so "export finished" never appears. Errors still reach stderr. This also means the email leak in item 3 only happens once logging is configured.

7. **"Yesterday" depends on two clocks (medium).** `date.today()` uses the cron host's timezone, while the `paid_at` comparison uses the database session's. If they differ, invoices paid near midnight land in the wrong day's file or in none. Pin one timezone explicitly.

8. **Amount format is inconsistent (low).** `amount_cents / 100` writes 1000 as `10.0`, 1050 as `10.5` and 1999 as `19.99`. Format to two decimals, or use `Decimal`.

9. **Importing the module requires `FINANCE_UPLOAD_URL` (low).** Line 16 reads it at import time, so any test or tool that imports the file without it gets a `KeyError`. Read it inside `upload()`.

10. **The CSV is opened without an encoding (low).** Line 33 uses the locale default, which can differ under cron. Pass `encoding="utf-8"`.

11. **Export files pile up in `/var/exports` (low).** They contain customer emails, are never cleaned up, and a failed run leaves a partial file behind.

## Speculative, worth a quick check

- **Zero-decimal currencies:** if invoices can be in JPY or similar, dividing by 100 is wrong (¥500 would export as 5.0).
- **Upload authentication:** the POST sends no credentials, which is fine only if the URL carries a token or the network is private.
- **Empty days:** a day with no paid invoices uploads a header-only file; confirm finance wants that.
- **Duplicates on re-run:** once re-runs exist, check whether the endpoint rejects a second upload for the same day.
- **Spreadsheet formulas:** an email starting with `=` or `+` would be read as a formula if finance opens the file in Excel.

## What is already sound

The query is parameterised and uses a half-open date range, the connection is always closed, and the functions are small and single-purpose.

VERDICT: NOT READY
