**Not ready to merge tomorrow.** The job can fail without anyone finding out, and it writes customer emails to the logs. I read only `export_job.py`, not `test_export_job.py`. The test description comes from the docstring.

## Blockers

1. **Failures are swallowed (`export_job.py:56-57`).** `run()` catches every exception, logs it, and exits 0. If the database is down or the upload returns a 500, cron sees success. Finance simply doesn't get the file, and nobody is alerted. Re-raise after logging, or call `sys.exit(1)`, so cron's failure handling fires.

2. **Customer emails are logged (`export_job.py:52`).** The info log line includes `[row[1] for row in rows]`, which is every customer email for the day. That puts personal data in the log files. Log only the count and the date.

## Should fix before merge

3. **Amounts are written as floats (`export_job.py:37`).** `amount_cents / 100` gives `10.5` for 1050 cents, not `10.50`. That's a risk for a finance import. Use `Decimal(amount_cents) / 100` formatted to two decimals, or `f"{amount_cents // 100}.{amount_cents % 100:02d}"`. This only works for currencies with two decimal places. If you have JPY or similar, `amount_cents` needs a per-currency exponent.

4. **No timeout on the upload (`export_job.py:42`).** `requests.post` has no `timeout`, so a hung endpoint blocks the cron job forever. Add something like `timeout=30`.

5. **The "yesterday" boundary depends on timezone (`export_job.py:47` and `28`).** `date.today()` uses the host's timezone. The query compares `paid_at` against bare dates, which uses the database session's timezone if `paid_at` is `timestamptz`. If those two differ, invoices paid near midnight land in the wrong day's file. Pick one timezone (UTC is the usual choice) and apply it in both places.

6. **The tests are too thin.** They cover the CSV header and one row. These cases have no tests:
   - an empty day
   - `fetch_invoices` date boundaries
   - `upload` failing with an HTTP error
   - `run()` propagating a failure (once fix 1 is made)
   - amount formatting, such as 1050 cents becoming `10.50`

   Under your TDD standard, write the failing test for each of fixes 1–5 first.

## Smaller notes

- `UPLOAD_URL = os.environ[...]` (`export_job.py:16`) runs at import time. Importing the module without that variable set raises `KeyError`, which makes tests awkward. Read it inside `run()` or pass it in.
- `run()` has no way to rerun a specific day (for example `--date`). When a night fails, you'll need that for backfill. If a rerun re-uploads the same file, check whether finance's endpoint deduplicates.
- The CSV is written straight to its final path. A crash mid-write leaves a partial file. Write to a temp name and rename it.
- Exports containing customer emails land in `/var/exports` with default permissions. Confirm that directory is locked down.

VERDICT: NOT READY
