Not ready to merge tomorrow, but it's close. The structure is good: small functions, a parameterised query, and clear names. Three things block the merge: failures are hidden from cron, customer emails get written to the logs, and the test file the docstring mentions isn't in this folder. All of them are quick fixes.

## Blocking

**1. A failed export looks like a success.** `run()` catches every exception, logs one line and returns normally (`export_job.py:56-57`), so the process still exits with status 0. For example, if the finance endpoint returns a 500 at 02:00, `raise_for_status()` raises, the error gets logged, and cron records a successful run. Finance gets no file and no alert goes out. `log.error("%s", error)` also drops the stack trace.
*Fix:* use `log.exception(...)` and then re-raise, or exit non-zero, so cron and your monitoring can see the failure.

**2. Every customer email goes into the logs.** Line 52 logs `[row[1] for row in rows]`, which is the full list of `customer_email` values, every night. That is personal data in log storage, which usually has wider access and longer retention than the database.
*Fix:* log only the count and the date.

**3. The tests the docstring mentions aren't here.** The docstring says it's "Tested by test_export_job.py", but there's no `test_export_job.py` in `order-service-designs/n`. If it's somewhere else, include it in the merge. Even then, "CSV header and one row" only covers `write_csv`. Nothing tests the failure path (#1), the date window or the upload.
*Fix:* add tests for an upload failure (it should raise or exit non-zero), an empty day, and the window boundaries (#4).

## Should fix

**4. Which invoices count as "yesterday" depends on the server's time zone.** `date.today()` uses the server's local time zone. The query compares `paid_at` to a bare date, which Postgres interprets in the database session's time zone. If those two differ from the time zone finance means by "yesterday", invoices near midnight end up in the wrong day's file or in no file. For example, with the job server on UTC and finance working in US Eastern time, an invoice paid at 22:00 Eastern on the 13th is 03:00 UTC on the 14th. It lands in the 14th's file, not the 13th's.
*Fix:* compute the window explicitly in the time zone finance wants and pass timezone-aware datetimes.

**5. Amounts are floats, and the conversion assumes two decimal places.** `amount_cents / 100` turns 1000 into `10.0`, not `10.00`. It also assumes every currency has 2 minor units: a JPY amount of 500 would export as `5.0`.
*Fix:* use `Decimal` and the currency's own number of decimal places, or export the integer cents and let finance convert.

**6. The upload has no timeout.** If the endpoint stalls, `requests.post` can wait forever, and the next night's run could overlap with this one.
*Fix:* pass something like `timeout=60`, and consider a small retry.

**7. Importing the module fails without `FINANCE_UPLOAD_URL`.** Line 16 reads the variable when the module is imported, so tests and other tools crash with a `KeyError` unless it's set.
*Fix:* read it inside `upload()` or `run()`, the way `DATABASE_URL` already is.

**8. Logging is never set up.** `__main__` doesn't call `logging.basicConfig`, so the `log.info` lines (including "export finished") are never emitted. Only errors reach stderr.

## Minor

**9. A missed day can't be re-run.** The day is always yesterday, so recovering from an outage means editing code. Accepting an optional `--date` argument would fix that.

**10. A failure while writing leaves a partial CSV** at the final path, and that file holds customer emails. Write to a temp file and rename it when done.

**11. Exported files are never cleaned up.** They sit in `/var/exports` indefinitely, with whatever the default permissions are, and each holds customer emails. Decide how long to keep them and what permissions they get.

**12. A failed database connection behaves differently from other failures.** `psycopg2.connect` runs outside the `try`, so it crashes the process, while every other error is swallowed. Fixing #1 makes this consistent.

**13. `fetchall()` loads the whole day into memory.** That's fine at a normal daily volume. Mentioning it only because you asked for everything.

VERDICT: NOT READY
