Nearly ready: the structure is clean and I'd fix two small things before merging tomorrow. The job is well organized: query, CSV writing, upload and orchestration are separate functions, the SQL is parameterized, and the connection is always closed.

**Fix before merge**

1. **Failures are invisible to cron.** `run()` catches every exception in `export_job.py:56-57`, logs it, and exits with status 0.
   - Case: the finance endpoint returns a 500 at 02:00. `raise_for_status()` raises and the error is logged, but cron sees a successful run. Nobody learns finance has no file for that day until they ask.
   - Fix: re-raise after logging, or call `sys.exit(1)`. It's a one-line change, plus a test that a failed upload makes `run()` fail.

2. **Customer emails are written to the logs.** `export_job.py:52` logs `[row[1] for row in rows]`, so every paid customer's email lands in the log file nightly.
   - Fix: log only the count and the date, which you already do. Drop the email list.

**Worth doing soon, fine to follow up on**

- **No timeout on the upload.** `requests.post` in `export_job.py:42` waits indefinitely, so a hung endpoint leaves a stuck 02:00 process. Adding `timeout=30` fixes it.
- **Timezone of "yesterday".** `date.today()` uses the server's timezone, but `paid_at` is compared against it as the database sees it. If the server is UTC and the database or finance works in another zone, invoices paid late in the day can land in the wrong day's file. Confirm which zone finance expects and make it explicit.
- **Amount formatting.** `amount_cents / 100` gives a float. That's fine for 1999 → `19.99`, but currencies without two decimals (JPY) will come out wrong. If you only bill in two-decimal currencies, a comment saying so is enough.
- **Test coverage.** `test_export_job.py` covers the CSV header and one row. The failure path, an empty day, and the upload call are untested. Testing the failure path is the most useful of those, and it's the same test as fix 1.

None of this is a redesign. Fixes 1 and 2 are a few lines plus one test, so tomorrow is realistic.

VERDICT: READY WITH CHANGES
