The job isn't ready to merge tomorrow. Three things block it: when the export fails, cron is still told it succeeded; every customer's email address gets written to the logs; and the test file the docstring points to doesn't exist. Each of those is a small fix, so it could still make tomorrow if you deal with those three first.

## Blockers (fix before merge)

**1. Failures look like success to cron (High).** `export_job.py:56-57` 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, the exit code is 0, and nothing alerts. Finance gets no file that night and nobody finds out until they ask.
- Expected: the job exits non-zero so cron or monitoring flags it.
- Fix: use `log.exception(...)` (which also keeps the traceback that `%s` currently drops), then re-raise or `sys.exit(1)`.

**2. Customer emails go into the logs (High).** `export_job.py:52` logs `[row[1] for row in rows]`, which is the full list of customer emails for the day, at INFO level. That's personal data sitting in log storage, where retention and access are usually much looser than in the database. Log only the count.

**3. The tests the docstring mentions are missing (High).** Line 3 says the job is "Tested by test_export_job.py", but that file isn't in the directory. Even as described (a header and one row), it wouldn't cover the risky paths. At minimum, add tests for:
- upload failure → non-zero exit
- empty day → header-only file, or a deliberate skip
- amount formatting (see #4)
- the day boundaries (see #5)

## Should fix (merge-worthy if ticketed with an owner)

**4. Money is converted with float division (Medium).** At `:37`, `amount_cents / 100` turns 1000 into `10.0` and 1999 into `19.99`, so the decimal places vary from row to row. It's also wrong for currencies with no minor unit: ¥500 stored as 500 comes out as `5.0`. Use `Decimal` and format using each currency's number of decimal places, or just export `amount_cents` and let finance divide.

**5. "Yesterday" depends on the server's timezone (Medium).** At `:47`, `date.today()` uses the host's local time. At `:21`, a plain date compared against `paid_at` uses the database session's timezone. If the two disagree, invoices near midnight land in the wrong day's file or get skipped. Pick UTC (or finance's timezone) explicitly and pass timezone-aware bounds.

**6. The upload has no timeout (Medium).** At `:42`, `requests.post` without `timeout=` can hang indefinitely, and the next night's run will start on top of it. Add a timeout, ideally with a small retry.

**7. Config is read when the module is imported (Low–Medium).** At `:16`, `os.environ["FINANCE_UPLOAD_URL"]` raises `KeyError` as soon as anything imports the module, so the tests can't import it without that variable set. Read it inside `upload()` or `run()`.

## Minor
- **Logging is never configured (Low).** There's no logging setup in `__main__`, so the INFO lines never appear; Python only prints WARNING and above by default. Configure logging, or the success line is invisible too.
- **No way to re-run a missed day (Low).** `run()` hardcodes yesterday. Accepting an optional date argument makes recovery after a failed night a one-liner.
- **Leftover files (Low).** A failed upload leaves the CSV in `/var/exports`, and a re-run quietly overwrites it. That's fine, as long as it's intended.
- **Question:** does finance actually need `customer_email` in the export? If not, dropping it shrinks the personal-data footprint further.

The structure itself is good: small functions, a parameterized query, and the connection closed in `finally`.

VERDICT: NOT READY
