**Almost ready. The structure is good, and three small fixes are needed before you merge tomorrow.**

The code is easy to read. Fetching, writing the CSV and uploading are separate small functions. The SQL is parameterized, and the half-open date range (`>= day`, `< day + 1`) is the right way to bound a day. The connection is always closed.

**Fix before merging**

1. **Failures are hidden from cron.** `run()` catches every exception, logs it and returns normally, so the process exits 0. If the database is down or the upload gets a 500, cron sees success and nobody is alerted. Finance would find out when the file is missing.
   - Example: the finance endpoint returns 503. Today the job logs one line and exits 0. It should exit non-zero.
   - Fix: use `log.exception(...)` and then `raise`, or `sys.exit(1)`.
2. **Customer emails are written to the logs.** Line 52 logs the list `[row[1] for row in rows]`, which is every customer email for the day. Logs usually have wider access and longer retention than the finance data. Log only the count and the date.
3. **The upload has no timeout.** `requests.post` waits forever by default. If the endpoint hangs, the 02:00 job never finishes, and the next night's run may overlap with it. Add `timeout=30` or similar.

**Worth doing soon, but not blocking**

- **Test coverage:** `test_export_job.py` covers only the CSV header and one row. Before merging, add at least a test that a failed upload makes the job exit non-zero (this would have caught item 1). `fetch_invoices` and `upload` also have no tests.
- **Amount formatting:** `amount_cents / 100` gives a float, so 1000 cents becomes `10.0` and 5 cents becomes `0.05`. A strict finance importer may expect `10.00`. Formatting with `f"{amount_cents / 100:.2f}"` or `Decimal` keeps it exact and consistent.
- **Timezone:** `date.today()` uses the server's local time, while `paid_at` comes from the database. If those differ, invoices near midnight could land on the wrong day. Check that both use the same timezone, or make it explicit.
- **Import-time environment variable:** `os.environ["FINANCE_UPLOAD_URL"]` is read when the module is imported, so tests must set it before importing. Reading it inside `run()` avoids that.

The three blocking fixes are each a few lines, and the failure-path test is the main new piece of work. I haven't run the code or the existing tests. This review is from reading the file only.

VERDICT: READY WITH CHANGES
