`export_job.py` is not ready to merge tomorrow: a failed export looks like a success to cron, and there is no way to re-run a missed day. I read the file only and ran nothing. The `test_export_job.py` named in the docstring is not in this folder, so I could not check the tests.

## Must fix before merge

1. **Failures are swallowed (`export_job.py:56-57`).** `run()` catches every exception, logs one line and returns normally, so the process exits 0. For example, if the finance endpoint returns 503 at 02:00, cron records success and finance has no file for that day. Let the exception propagate (or `sys.exit(1)`), and use `log.exception` so the traceback is kept.

2. **A missed day cannot be re-exported (`export_job.py:47`).** The day is always "today minus one". If Tuesday's run fails, running the job on Wednesday exports Tuesday's invoices, and Monday's are never sent. Accept the date as an argument that defaults to yesterday.

3. **The upload has no timeout (`export_job.py:42`).** `requests.post` waits forever by default. If the endpoint stops responding, the job hangs with the database connection open and never reports a failure. Add `timeout=`.

4. **Customer emails are written to the log (`export_job.py:52`).** The log line includes every customer's email address for the day. Log the count and the date only.

5. **Tests cover only the CSV header and one row, per the docstring.** Nothing tests the date window, the failure path or the upload. At minimum add tests for:
   - an invoice paid exactly at midnight landing in the right day;
   - an upload failure producing a non-zero exit;
   - an empty day.

## Should fix, or decide on purpose

- **Which timezone "yesterday" means (`export_job.py:47`, `:21`).** `date.today()` uses the server's clock, and the date comparison against `paid_at` uses the database session's timezone. If those differ from finance's timezone, invoices paid near midnight land in the wrong day's file. Pick a timezone and make it explicit.
- **Amount formatting (`export_job.py:37`).** `amount_cents / 100` writes 1000 cents as `10.0` and 1005 cents as `10.05`. Format to a fixed two decimals with `Decimal`. Dividing by 100 is also wrong for currencies without two decimal places, such as JPY, if the table holds any.
- **Logging is never configured.** Run as a script, the two `log.info` lines print nothing; only errors reach stderr. Add `logging.basicConfig` in the `__main__` block.
- **Import-time config (`export_job.py:16`).** `FINANCE_UPLOAD_URL` is read at import, so importing the module in a test without that variable raises `KeyError`. Read it inside `run()` and pass it to `upload()`.
- **Re-runs send the file again.** Confirm whether the finance endpoint de-duplicates or would double-count.
- **CSV files stay on disk.** Files containing customer emails accumulate in `/var/exports` with no cleanup.
- **File encoding (`export_job.py:33`).** `open()` has no `encoding="utf-8"`, so the encoding depends on cron's locale.

## What is fine

The query is parameterised, the half-open date range (`>=` start, `<` end) is correct, the connection is always closed, and the functions are small and separately testable.

Items 1–4 are small edits; the tests in item 5 are the bulk of the work.

VERDICT: NOT READY
