**Not ready to merge tomorrow.** There are three blocking problems. When the export fails, nobody finds out. Every customer email address gets written to the logs. And the test file the docstring mentions isn't in the folder. Each fix is small, so it could still be merged tomorrow if you make them today.

## Blockers

**1. Failures are silent (`export_job.py:56-57`).** `run()` catches every exception, logs one line and returns normally, so the process exits with code 0. Example: the finance endpoint returns HTTP 500. `raise_for_status()` raises, the error is caught and logged, and cron records a successful run. Finance gets no file and no alert fires. What should happen is a non-zero exit so cron or monitoring notices. Fix: use `log.exception(...)` (which keeps the traceback) and then re-raise, or `sys.exit(1)`.

**2. Customer emails are written to the logs (`export_job.py:52`).** `[row[1] for row in rows]` puts every paying customer's email address into the info log every night. Example: 3,000 invoices means 3,000 email addresses copied into whatever stores your logs, with that system's retention and access rules. Log only the count and the date.

**3. The tests don't exist.** The docstring cites `test_export_job.py`, but there's no such file in this folder. Even if it's somewhere else, "CSV header and one row" isn't enough for a job that moves money figures to finance. The minimum set I'd want:
- `write_csv` handles amounts correctly, including the currency case in item 5 below.
- `run()` exits non-zero when the upload fails and when the database query fails.
- The date window is right at midnight, for example an invoice paid at 23:59:59 versus one paid at 00:00:00.
- No email addresses appear in the log output (pytest's `caplog` can check this).

There's also something that makes testing hard: `UPLOAD_URL = os.environ["FINANCE_UPLOAD_URL"]` (line 16) runs at import time. Any test that imports the module crashes with `KeyError` unless that variable is set. Read it inside `upload()` or `run()` instead, or pass it in.

## Should fix (correctness, not blocking alone)

**4. The upload has no timeout (line 42).** `requests.post` without `timeout=` can wait forever if the endpoint stops responding. The 02:00 job would then still be running the next night. Add something like `timeout=(10, 120)`.

**5. Amounts are wrong for some currencies (line 37).** `amount_cents / 100` assumes every currency has two decimal places. Example: an invoice for ¥500 is stored as `500` (yen have no minor unit). The CSV says `5.0`; it should say `500`. A Bahraini dinar amount (three decimal places) would be off by a factor of 10. The division also produces floats, so ¥1,000 comes out as `10.0`. If every invoice is USD, EUR or another two-decimal currency, this is only cosmetic. Otherwise use `Decimal` with a per-currency exponent. Either way, confirm with finance what format they expect.

**6. The day boundary depends on server timezone settings (lines 21, 28, 47).** `date.today()` uses the cron host's local timezone. The SQL compares a bare date against `paid_at`, and Postgres interprets that date in the database session's timezone. Example: the host runs in UTC and the database session uses America/New_York. An invoice paid at 23:30 New York time on the 13th is 04:30 UTC on the 14th. Whether it lands in the 13th's or the 14th's file depends on those settings, not on the code. Pick one timezone deliberately, probably the one finance reports in, and make the query use it explicitly.

## Smaller items

- **Info logs probably go nowhere.** Nothing configures logging, so Python's default only shows warnings and errors. Neither "exporting…" nor "export finished" will appear. Call `logging.basicConfig(level=logging.INFO)` in `__main__`.
- **You can't re-run a missed day.** The date is fixed to yesterday. Accepting an optional `--date` argument would let you backfill after an outage, and that will matter once item 1 makes failures visible.
- **Questions to settle, not bugs:**
  - Should a day with zero paid invoices upload a file with only the header row? That's what happens now.
  - Who cleans up `/var/exports`? Each file holds customer emails and stays on disk indefinitely.
  - Is the upload safe to retry if the job is re-run?

The overall structure is good: small functions, a parameterised SQL query (no injection risk), and the connection closed in `finally`. Once items 1 to 3 are fixed and tests cover items 4 to 6, I'd approve it.

VERDICT: NOT READY
