I reviewed `export_job.py` and it is **not ready to merge tomorrow**. The two biggest problems: when the export fails, nothing tells anyone, and every run writes customer email addresses into the logs. The docstring also says the job is tested by `test_export_job.py`, but that file isn't in this folder, so the job has no tests here.

## Must fix before merge

1. **Failures are hidden** (`export_job.py:56-57`). `except Exception` logs one line and then lets the script exit with code 0. If the database query, the CSV write or the upload fails, cron counts the run as a success and finance gets no file. For example: the upload endpoint returns a 500 at 02:00, `raise_for_status()` raises, the error is caught, the script exits 0, and no alert goes out. Fix: log with `log.exception(...)`, then re-raise or `sys.exit(1)` so monitoring sees the failure.

2. **Customer emails go into the logs** (`export_job.py:52`). `[row[1] for row in rows]` puts every paying customer's email address into the log every night. That is personal data leaking into a system with much wider access than the database. Fix: log only the count and the date.

3. **There are no tests.** `test_export_job.py` doesn't exist, even though the docstring says it does. Also, the docstring describes the planned tests as "CSV header and one row", which would miss problems 1, 4 and 5. Minimum set of tests:
   - `write_csv`: amount formatting, including a zero-decimal currency.
   - `run`: exits non-zero when the upload fails.
   - `run`: no email addresses in the log output.
   - `fetch_invoices`: start and end of the date window.

4. **Amounts assume 2 decimal places and use floats** (`export_job.py:37`). `amount_cents / 100` divides every currency by 100:
   - A ¥500 invoice (JPY has no minor unit) is exported as `5.0`; the correct value is `500`.
   - A $10.00 invoice is exported as `10.0`; finance would expect `10.00`.
   
   Fix: use `Decimal` with each currency's number of decimal places, or export the raw `amount_cents` and let finance convert it.

## Should fix

5. **Timezone at the date boundary** (`export_job.py:47`, `:28`). `date.today()` uses the server's local time zone, and comparing a plain date with `paid_at` depends on the database session's time zone. If those differ from the time zone finance means by "yesterday", invoices paid near midnight end up in the wrong day's file or in neither. Pick one time zone (UTC, or finance's) and set it in both places.
6. **No timeout on the upload** (`export_job.py:42`). `requests.post` without a `timeout` can hang indefinitely if the endpoint stalls, and tomorrow's cron run would then start on top of it. Add something like `timeout=60`.
7. **Environment variables are read at import time** (`export_job.py:16`). Just importing the module raises `KeyError` if `FINANCE_UPLOAD_URL` isn't set, which also gets in the way of writing tests. Read it inside `run()`, or pass it in as a parameter.
8. **Database connect is outside the `try`** (`export_job.py:49`). A failed connection exits non-zero, while every other failure is swallowed. Fixing item 1 makes these consistent.

## Minor

- CSV files containing customer emails pile up in `/var/exports` with nothing deleting them. Decide how long to keep them.
- Re-running the job for the same day overwrites the file and uploads it again. Check with finance whether a second upload creates duplicate entries on their side.

The structure itself is fine: fetching, writing and uploading are small, separate functions, which will make the tests easy to write. Items 1–4 are each small changes, but together with the tests they are more than a one-evening fix.

VERDICT: NOT READY
