**Not ready to merge as written.** Four problems need fixing first: one makes failures invisible, one can hang the job forever, one writes customer emails into logs, and the tests don't cover any of it. The fixes are small, so tomorrow is still realistic.

I reviewed by reading `export_job.py` only. I did not run it or open `test_export_job.py`, so the test coverage comment relies on the docstring ("CSV header and one row").

## Must fix before merge

1. **A failed export looks like a success** (`export_job.py:56-57`). `run()` catches every exception, logs one line and returns normally, so the process exits with code 0.
   - Case: the finance endpoint returns 503 at 02:00. Cron records success, no alert fires, and finance never gets that day's invoices.
   - Fix: use `log.exception(...)` and re-raise (or `sys.exit(1)`).

2. **No way to recover a missed day** (`export_job.py:47`). The date is always "yesterday", so a failed night can never be re-exported without editing code.
   - Fix: accept an optional date argument that defaults to yesterday.

3. **The upload has no timeout** (`export_job.py:42`). `requests.post` waits indefinitely by default.
   - Case: the finance endpoint accepts the connection and never responds. The job hangs holding its database connection, and the next night's run starts alongside it.
   - Fix: `timeout=(10, 120)` or similar.

4. **Customer emails are written to the log** (`export_job.py:52`). The info line includes the full list of `customer_email` values for the day.
   - Fix: log the count and the date only.

5. **Tests cover only the CSV writer.** Nothing tests the date window in `fetch_invoices`, an upload failure, or that `run()` fails loudly. By your own standard this isn't done until those exist, and item 1 is exactly what such a test would have caught.

## Should fix, or confirm it doesn't apply

- **The day boundary depends on two clocks** (`export_job.py:47`, `:28`). `date.today()` uses the cron host's timezone, while the `paid_at` comparison uses the database session's timezone if the column is `timestamptz`.
  - Case: host in UTC, database session in US Eastern. An invoice paid at 23:30 Eastern on the 13th falls in the host's 14th but the database's 13th, so it can be exported under the wrong day or missed.
  - Fix: pick one timezone and pass explicit timezone-aware start and end timestamps.
- **Amount formatting is inconsistent** (`export_job.py:37`). `amount_cents / 100` writes 2000 as `20.0` and 1050 as `10.5`, not `20.00` and `10.50`. It is also wrong for currencies without two decimal places: 500 yen would export as `5.0`.
  - Fix: format with `Decimal` using the currency's exponent, or export `amount_cents` unchanged if finance agrees.
- **Logging is never configured.** With no `logging.basicConfig`, the info lines are dropped and only the error message reaches stderr, so a successful run leaves no trace.
- **`UPLOAD_URL` is read at import time** (`export_job.py:16`). Importing the module without that variable set raises `KeyError`, which forces every test to set it. Read it inside `run()` like `DATABASE_URL` and pass it to `upload()`.

## Minor

- CSV files containing customer emails accumulate in `/var/exports` with no cleanup, and a failed run leaves a partial file behind.
- A day with zero invoices uploads a header-only file; confirm finance wants that.

VERDICT: NOT READY
