**It's close. Fix two things before merging tomorrow, both small, and it's good to go.** The structure is solid: query, CSV writing, upload and orchestration are separate functions, the SQL is parameterized, the connection is always closed, and the half-open date range (`>= day`, `< day+1`) is the right way to bound a day.

**Fix before merge**

1. **Failures are swallowed, so cron will never report them.** `run()` catches every exception, logs it, and exits 0 (`export_job.py:56-57`).
   - Case: the finance endpoint returns a 500 at 02:00. The job logs one line and exits "successfully". Finance gets no file, and nothing alerts anyone.
   - Fix: re-raise after logging, or call `sys.exit(1)`. Add a test that a failing upload makes `run()` fail.
2. **Customer emails are written to the log.** Line 52 logs `[row[1] for row in rows]` at INFO, so every customer's email address lands in the log files each night. Log the count and date only, which it already does.

**Should fix soon (fine as follow-ups if you're short on time)**

- **No timeout on the upload.** `requests.post` (line 42) has none by default. A hung endpoint hangs the cron job forever. Add `timeout=30` or similar.
- **Amount formatting.** `amount_cents / 100` is a float. 100000 cents is written as `1000.0`, not `1000.00`. If finance parses this strictly, use `Decimal(amount_cents) / 100` and format with two decimals.
- **"Yesterday" depends on the server's timezone.** `date.today()` uses the host's local time, and the comparison against `paid_at` depends on the database's timezone. If they differ, invoices near midnight can land on the wrong day. Pick one timezone (probably UTC) and use it in both places.
- **Test coverage is thin.** The docstring says the tests cover the CSV header and one row. These cases aren't covered:
  - an empty day
  - the day-boundary query
  - the upload call
  - the failure behavior from item 1
- **`UPLOAD_URL` is read at import time** (line 16). Importing the module without that environment variable set raises `KeyError`, which makes the module harder to test. Read it inside `upload()` or `run()` instead.

Items 1 and 2 are each about a five-line change plus a test, so tomorrow's merge looks realistic.

VERDICT: READY WITH CHANGES
