**Not ready to merge as-is, but the fixes are small.** Two changes should go in before merge, and then it's good to go. The structure is already solid: `fetch_invoices`, `write_csv`, `upload` and `run` each do one thing, the query is parameterized, the connection is closed in `finally`, and the half-open date range is correct. I only read the code. I didn't run it or `test_export_job.py`.

**Fix before merging**

1. **Failures are swallowed (`export_job.py:56-57`).**
   - `run()` catches every exception, logs it, and exits 0. If the finance endpoint returns a 500 or the database is down, cron sees a success, and finance silently gets no file for that day.
   - Re-raise after logging, or call `sys.exit(1)`, so cron's failure reporting or alerting fires.
   - Add a test where `upload` raises and the failure propagates.

2. **Customer emails are written to the logs (`export_job.py:52`).**
   - The log line includes `[row[1] for row in rows]`, so every night's paid customers' addresses go into the log files, which usually have wider access and longer retention than the finance upload.
   - Logging the count and the date, which you already do, is enough.

**Worth doing, but they don't need to block the merge**

- **Day boundary.** `datetime.date.today()` uses the server's timezone, and the query compares `paid_at` against plain dates. If the server runs in UTC and finance expects local days, invoices near midnight land in the wrong file. Pick one timezone on purpose and say which in the docstring.
- **Amount as a float (`export_job.py:37`).** `amount_cents / 100` produces a float. It happens to look fine for common values, but `Decimal(amount_cents) / 100` is safer for a finance file. It also assumes every currency has 2 decimal places, which is wrong for JPY and KWD.
- **Test coverage.** The tests only cover the CSV header and one row. Cases worth adding: an empty day (header-only file), the upload failure from item 1, and a `paid_at` right at the day boundary.
- **Reruns.** A manual rerun overwrites the same file and uploads it again. That's fine if the finance endpoint de-duplicates, so it's worth confirming with them.

VERDICT: READY WITH CHANGES
