**Not ready to merge yet, but the fixes are small.** The structure is good: query, CSV writing and upload are separate functions, the query is parameterized, and the connection is closed in a `finally`. Two problems would hurt in production: failures are hidden from cron, and customer emails are written to the logs.

## Blockers

1. **Failures exit successfully (`export_job.py:56-57`).** `run()` catches every exception, logs one line, and returns. Cron sees exit code 0 and finance gets no file. Example: the finance endpoint returns a 500, `raise_for_status()` raises, and the job ends with "success". Nobody finds out until finance asks where the file is. Log with `log.exception`, then re-raise or `sys.exit(1)`.
2. **Customer emails are logged (`export_job.py:52`).** The log line includes `[row[1] for row in rows]`, the full list of customer emails for the day. That puts personal data in log files, which usually have wider access and longer retention than the invoice data. Log only the count and the date.

## Should fix before merge

3. **No timeout on the upload (`export_job.py:42`).** `requests.post` waits forever by default. A stalled finance endpoint leaves the cron job hanging, and tomorrow's run may overlap with it. Add `timeout=`.
4. **Amounts go through float division (`export_job.py:37`).** `amount_cents / 100` is wrong for currencies without two decimal places. Example: a JPY invoice of 500 is exported as `5.0`, which is 100 times too small. Float output can also produce odd values. Use `Decimal` and a per-currency exponent, or export the integer minor units with a column name that says so.
5. **Day boundaries depend on local time (`export_job.py:47`).** `date.today()` uses the server's timezone, and the date is compared against `paid_at` in the database session's timezone. If these differ, invoices paid late in the evening land in the wrong day's file. Pick one timezone (UTC is simplest) and use it for both.
6. **Test coverage is thin.** The module docstring says the tests cover only the CSV header and one row. Nothing covers `fetch_invoices`, `upload`, a failed upload, an empty day, or the swallowed-error path from item 1. Add a failing test for item 1 first, then fix it.
7. **Logging is never configured.** There is no `logging.basicConfig`, so under cron the `log.info` lines are dropped. Only the error line shows up, through Python's fallback handler.

## Minor

8. **`UPLOAD_URL` is read at import time (`export_job.py:16`).** A missing variable raises `KeyError` as soon as the module is imported, which also breaks the test file. Read it inside `run()`.
9. **CSV formula injection.** An email value starting with `=`, `+`, `-` or `@` runs as a formula if finance opens the file in Excel. Risk is low, but it is cheap to guard against.
10. **No way to re-run a past date.** If a night fails you can't re-export that day without editing code. An optional date argument fixes this.
11. **File handling.**
    - The code doesn't check that `/var/exports` exists.
    - `open` has no `encoding="utf-8"`.
    - Old files are never cleaned up.
    - A crash mid-write leaves a partial file at the final path. Write to a temp name, then rename.
12. **Empty days still upload a header-only file (`export_job.py:53-54`).** That may be what finance wants. If so, say it in a comment. If not, skip the upload.
13. **`fetchall()` loads every row into memory.** This is fine at current volume. Note it as a limit if volume grows.
14. **Small things.**
    - `EXPORT_DIR` is hardcoded and could come from an environment variable.
    - A NULL `paid_at` would crash `.isoformat()`. The `status = 'PAID'` filter probably prevents it, but nothing enforces that.

If you fix items 1 and 2, and ideally 3 and 6, you could merge tomorrow. The rest can follow as tracked tickets.

VERDICT: NOT READY
