It's not ready to merge tomorrow. There are four blocking problems: the job writes customer emails into the logs, it hides its own failures from cron, the test file the docstring mentions isn't in this folder, and the amounts it sends to finance are formatted wrongly. Each is a small fix, so it could still be ready tomorrow if you make them today.

## Blocking

**1. Customer emails are written to the logs (`export_job.py:52`).**
`[row[1] for row in rows]` puts every customer's email address into an INFO log line every night. On a day with 2,000 invoices, that's 2,000 email addresses in your log system, kept for as long as you keep logs. Log only the count.

**2. Failures are hidden, so nobody will hear when the export breaks (`export_job.py:56-57`).**
`except Exception` logs the error and then lets the process exit with code 0. Example: the finance endpoint returns 503, `raise_for_status()` raises, the job logs one line and exits 0. Cron counts that as a success, and finance just doesn't get the file. The job should log with `log.exception(...)` and then re-raise (or `sys.exit(1)`) so cron and your alerting notice.

**3. The tests aren't here.**
The docstring says the job is tested by `test_export_job.py`, but that file doesn't exist in this directory. Even as described (CSV header plus one row), it would cover only the easy case. Per your TDD standard, it should at least cover:
- CSV formatting, including amounts like 1000 and 5 cents
- an upload failure that ends in a non-zero exit
- a day with no invoices
- the date window passed to the query

There's also a catch: `UPLOAD_URL = os.environ["FINANCE_UPLOAD_URL"]` at line 16 runs on import. Any test that imports the module crashes with `KeyError` unless that variable is set. Read it inside `upload()` or `run()` instead.

**4. Amounts are floats, so the CSV formatting is wrong (`export_job.py:37`).**
`amount_cents / 100` with `amount_cents = 1000` writes `10.0`, but finance will expect `10.00`. Floats are also the wrong type for money in general. The usual pattern is `Decimal(amount_cents) / 100` formatted with two decimals. If you have currencies without cents (e.g. JPY) or with three decimal places (e.g. KWD), dividing by 100 is wrong for those too, so check which currencies you actually store.

## Should fix (not blocking)

- **No timeout on the upload (`:42`).** If the endpoint stops responding, `requests.post` with no timeout waits forever and the job never finishes. Add something like `timeout=60`.
- **Unclear which timezone "yesterday" is in (`:47`).** `date.today()` uses the server's local time, and the `paid_at` comparison uses the database session's timezone. If those differ from what finance means by a day (e.g. server on UTC, finance working in IST), invoices land in the wrong day's file. Make the timezone explicit.
- **You can't re-run a past day.** The date is hard-coded to yesterday, so if the job fails on Tuesday you can't export Monday on Wednesday. Let `run()` take an optional day argument and pass it in from the command line.
- **The success logs never show up.** Nothing sets up logging, so Python's default only lets warnings and errors through and both `log.info` calls disappear. Call `logging.basicConfig(level=logging.INFO)` in the `__main__` block.
- **Empty days upload a file with only the header.** That may be what you want. Confirm it with finance.

The structure itself is fine: the fetch, write and upload steps are small, separate functions, and the query is parameterised. The fixes above don't need a redesign.

VERDICT: NOT READY
