The structure is good: the query, CSV writing, upload and orchestration are separate small functions, and the parameterized query and `finally: conn.close()` are done properly. It can merge tomorrow once two small fixes are in. I only read `export_job.py`. I didn't run it or look at `test_export_job.py`, so the test comments below rely on the docstring.

**Fix before merging**

1. **Failures are swallowed (`export_job.py:56-57`).** `run()` catches every exception, logs it, and exits 0. If the upload returns a 500 or the database is down, cron sees success and finance silently gets no file for that day. Re-raise after logging (`log.exception(...)` then `raise`), or call `sys.exit(1)`, so cron's alerting can fire.
2. **Customer emails are logged (`export_job.py:52`).** The `[row[1] for row in rows]` puts every paid customer's email address into the logs at INFO level. Log only the count and the day.

**Should fix, and cheap**

3. **No timeout on the upload (`export_job.py:42`).** `requests.post` waits forever by default. If the finance endpoint hangs, the 02:00 job hangs with it. Add `timeout=30`.
4. **Amounts are floats (`export_job.py:37`).** `amount_cents / 100` gives `10.0` for 1000 cents and relies on float formatting for the rest. Finance will likely want exact decimals. Use `Decimal(amount_cents) / 100`, or format as `f"{amount_cents // 100}.{amount_cents % 100:02d}"`. Also confirm whether any currency, such as JPY, has no minor unit, since dividing by 100 is wrong for it.
5. **"Yesterday" is ambiguous (`export_job.py:47`).** `date.today()` uses the server's timezone, and the comparison against `paid_at` uses the database session's timezone. If the two differ, an invoice paid at 23:30 can land in the wrong day's file. Pick one timezone, such as UTC, and apply it in both places.
6. **`UPLOAD_URL` is read at import time (`export_job.py:16`).** A missing variable raises `KeyError` on `import export_job`, so tests can't import the module without setting it first. Read it inside `upload()` or `run()`.

**Tests**

The docstring says the tests cover the CSV header and one row. Nothing covers `run()`, the failure path, an empty day, or the upload. Fixes 1 and 3 each need a test: one that mocks `upload` to raise and checks the error propagates, and one that checks the timeout is passed. An empty-day case is worth adding too, because an empty file would still upload.

**Minor**

- Rerunning the job overwrites the same day's file and re-uploads it. If the finance endpoint doesn't dedupe, a retry could double-count. Check this with them.
- `EXPORT_DIR` is hardcoded. It's fine for now, but an env override would make it easier to test.

VERDICT: READY WITH CHANGES
