**Not ready to merge.** The job can fail silently, can send finance wrong data, and has no tests in the directory I was given.

**Blockers**

1. **Failures are swallowed (`export_job.py:56-57`).** The `except Exception` only logs the error, so the script exits with code 0. If the database is down or the upload returns a 500, cron sees success and finance gets no file. Nobody is alerted. Log the exception with a stack trace and re-raise, or call `sys.exit(1)`.
2. **Customer emails are written to the logs (`:52`).** It logs the email of every exported customer on every run. That is personal data in log storage. Log only the count and the date.
3. **Wrong day near midnight, and possibly the wrong timezone (`:47`, `:28`).**
   - `date.today()` uses the server's local timezone.
   - It is compared against `paid_at` as a bare date.
   - If `paid_at` is stored in UTC and the server is not on UTC, invoices paid near midnight land in the wrong day's export.
   - Example: an invoice paid at 23:30 UTC on Nov 13 is missed or duplicated.
   - Use explicit UTC datetimes for both bounds, or confirm the column type and server timezone.
4. **Money is written as a float (`:37`).** `amount_cents / 100` gives a float, and finance is importing it. For example, `1999` is written as `19.99`, but `100000` is written as `1000.0`, with inconsistent decimals. Use `Decimal(amount_cents) / 100` formatted with two places, or export the cents as an integer. Currencies with no minor unit, such as JPY, are also wrong under a flat `/100`.
5. **Tests are missing.** The docstring says `test_export_job.py` covers the CSV header and one row, but that file isn't in this directory. Even if it exists elsewhere, that coverage is far too thin. Nothing tests the following:
   - the empty-day case
   - the date-boundary behaviour
   - amount formatting
   - upload failure propagating
   - the exit code

   Under your TDD standard this blocks the merge.

**Should fix**

- **Import-time crash (`:16`).** `os.environ["FINANCE_UPLOAD_URL"]` runs at import, so importing the module without that variable set raises `KeyError`. Tests would break, for example. Read it inside `run()`.
- **No upload timeout (`:42`).** `requests.post` has no `timeout`, so a hung endpoint blocks the cron job forever. Add one, e.g. `timeout=30`.
- **Reruns overwrite the file silently.** That is fine if intended, but upload is not idempotent. A retry after a partial failure could send duplicates to finance. Decide the behaviour and document it.
- **`run()` mixes concerns.** It handles configuration, the database connection, logging, and orchestration. Pass the connection and day in, so the date logic and failure handling can be unit-tested.
- **No file permissions or cleanup (`:15`).** The CSV with customer emails sits in `/var/exports` with default permissions and is never removed. Set restrictive permissions and add a retention policy.

**What's fine:** the query is parameterized (no SQL injection), the `with` blocks close the cursor and files correctly, and the connection is always closed in `finally`.

I only reviewed this one file. I did not run it, and I can't tell whether the tests live somewhere else.

VERDICT: NOT READY
