Not as it stands, but it is close: three small fixes (about an hour's work) should go in before the merge, plus one question to confirm. I reviewed by reading `export_job.py` only; I did not run it or open `test_export_job.py`.

The structure is good: fetch, write, upload and `run` are each small and single-purpose, the SQL is parameterised, and the half-open date range (`>=` start, `<` next day) is the right way to select a day.

## Fix before merging

1. **A failed export looks like a success to cron** (`export_job.py:56-57`). The `except Exception` logs one line and the script exits with code 0.
   - **Example:** the finance endpoint returns a 500 at 02:00. `raise_for_status()` raises, the job logs "export failed" and exits 0, so cron raises no alert and finance has no file.
   - **Expected:** a non-zero exit and a traceback.
   - **Fix:** use `log.exception(...)` and re-raise, or drop the `except` and keep the `finally`.

2. **Customer emails are written to the log** (`export_job.py:52`). The line logs every `customer_email` for the day, which puts personal data into log files with wider access and longer retention than the database. Log the count and the date only.

3. **The upload has no timeout** (`export_job.py:42`). `requests.post` with no `timeout` waits forever if the endpoint stalls, so the job can hang and overlap with the next night's run. Add something like `timeout=(10, 120)`.

## Confirm before merging

4. **Which timezone "yesterday" means** (`export_job.py:47`). `date.today()` uses the cron host's clock, while the `paid_at` comparison uses the database session's timezone. If the two differ, invoices paid near midnight are skipped or exported twice. If both are UTC and finance expects UTC days, there is nothing to change.

## Worth doing soon, not blocking

- **Logging is never configured.** With no `logging.basicConfig`, the `log.info` lines go nowhere when run from cron; only the error line reaches stderr.
- **Amount formatting.** `amount_cents / 100` writes 1000 as `10.0` and 2990 as `29.9`. Use `f"{amount_cents / 100:.2f}"`, or `Decimal`, if finance expects two decimals. Zero-decimal currencies such as JPY would also be wrong if they are ever stored.
- **No way to re-run a missed day.** The date is fixed to yesterday, so recovering from a failed night means editing code. An optional `--date` argument would solve this.
- **Test coverage is thin.** By the docstring, the tests cover the CSV header and one row. The date window in `fetch_invoices` and the upload-failure path (fix 1) are the two most worth adding; both are easy with a fake cursor and a mocked `requests.post`.
- **`UPLOAD_URL` is read at import time** (`export_job.py:16`). Importing the module in a test fails with `KeyError` unless the variable is set; reading it inside `upload()` avoids that.

VERDICT: READY WITH CHANGES
