**The job isn't ready to merge tomorrow, because it can fail silently and it writes customer emails to the logs.** The structure is clean: small functions, a parameterized query, and `with` blocks for the cursor and files. Both blockers are small fixes.

I only read the file. I didn't run it or open `test_export_job.py`, so the test comments rely on the docstring, which says it covers a CSV header and one row.

## Blockers

1. **Failures are swallowed (`export_job.py:56-57`).** `run()` catches every exception, logs one line and exits 0.
   - Case: the finance endpoint returns a 500. `raise_for_status()` raises, the job logs "export failed" and cron records success. Finance is missing a day of invoices and nobody is alerted.
   - Fix: use `log.exception(...)` and re-raise, or call `sys.exit(1)`. The `finally` still closes the connection.
2. **Customer emails are written to the logs (`export_job.py:52`).** The info line logs `[row[1] for row in rows]`, which is every customer's email address, every night.
   - Fix: log only the count and the date.

## Should fix before or soon after merge

3. **Day boundaries depend on timezone (`export_job.py:47, 28`).** `date.today()` uses the server's timezone. The `date` is then compared to `paid_at`, in the database session's timezone.
   - Case: the server runs in UTC and the finance team expects local business days. An invoice paid at 23:30 local time lands in the wrong day's file.
   - Fix: pick one timezone explicitly, build timezone-aware start and end bounds, and test the edges.
4. **Amounts use float division (`export_job.py:37`).** `amount_cents / 100` is wrong for currencies that don't have 2 decimal places, such as JPY (0) and KWD (3).
   - Case: 1999 cents prints `19.99`, but 1000 cents prints `10.0` rather than `10.00`. The format is inconsistent for a finance system.
   - Fix: use `Decimal` and format with the currency's exponent, or export `amount_cents` as-is.
5. **No timeout on the upload (`export_job.py:42`).** `requests.post` has no `timeout`, so a hung endpoint blocks the job forever.
6. **Test coverage is thin.** A header check and one row won't catch the problems above. Missing cases:
   - an empty day
   - the day boundaries
   - a failing upload that must exit non-zero
   - nothing sensitive in the logs
   - a non-2-decimal currency

## Minor

7. **`UPLOAD_URL` is read at import (`export_job.py:16`).** Importing the module raises `KeyError` if the environment variable is unset, so tests need it set before they import anything. Read it inside `run()` or pass it in.
8. **Re-running is not safe.** A re-run overwrites the file and uploads it again, so finance gets duplicates unless the endpoint dedupes. Decide whether that's intended and document it.
9. **The CSV isn't written atomically (`export_job.py:33`).** A crash mid-write leaves a partial file. Write to a temp file, then rename it.
10. **`EXPORT_DIR` is hardcoded and may not exist.** Make it configurable or call `os.makedirs(..., exist_ok=True)`.
11. **Exported files pile up in `/var/exports`.** They contain customer emails and are never cleaned up. Add retention or deletion after a successful upload.
12. **`psycopg2.connect` sits outside the `try` (`export_job.py:49`).** A connection failure is the only error that currently crashes the job loudly, which is inconsistent with the other failures.
13. **Logging isn't configured.** There is no `basicConfig`, so the `log.info` lines won't appear under cron. Only the error line shows, through Python's fallback handler.
14. **The upload sends no credentials.** If the endpoint is authenticated some other way, ignore this. Otherwise confirm it's meant to be open.
15. **The `amount` header is ambiguous.** The column holds a major-unit value but the source field is `amount_cents`. Consider naming it `amount_major` or documenting it.
16. **`customer_email` could trigger spreadsheet formulas.** A value starting with `=` or `+` would be evaluated if finance opens the CSV in Excel. Low risk, but worth knowing.
17. **`fetchall()` loads everything into memory.** That's fine at current volume. Switch to a streaming cursor if volume grows.

Items 1 and 2 are about 10 lines of change, plus a test that a failed upload exits non-zero. With those done and tests added for items 3 to 5, this would be ready to merge.

VERDICT: NOT READY
