**It's not ready to merge tomorrow.** Three problems block it. If the job fails, nobody finds out. It writes every customer's email address into the logs. And the test file its docstring mentions, `test_export_job.py`, doesn't exist in this folder, so none of this code is tested. The blockers are probably half a day of work. Most of the rest are small fixes.

## Blockers (High)

1. **Failures are silent** (`export_job.py:56-57`). The `except Exception` writes one log line and then the job exits normally with status 0. Cron counts that as a success, so no alert fires.
   - **Example:** the finance endpoint returns a 500 at 02:00. You get one line, `export failed: 500 Server Error...`, with no stack trace. Finance receives no file, and nobody notices until finance asks.
   - **Expected:** the job exits non-zero (re-raise after logging) and logs with `log.exception` so the stack trace is kept.

2. **Customer emails go into the logs** (`export_job.py:52`). `[row[1] for row in rows]` writes every customer email into the INFO log every night. That's personal data in a place with weaker access controls and longer retention than the database. Log only the count.

3. **No tests.** The docstring says the job is tested by `test_export_job.py`, but that file isn't here. At minimum, add tests for:
   - CSV output, including how amounts are formatted
   - the date window (start and end of the day)
   - an upload failure making the job exit non-zero
   - a day with zero invoices

## Should fix before or soon after merge (Medium)

4. **Amounts are written as floats** (`:37`). `amount_cents / 100` turns 10 cents into `0.1`, not `0.10`, and 1000 cents into `10.0`. Floats can also introduce rounding errors in money values. Use `Decimal(amount_cents) / 100`, formatted to two decimal places, or agree a format with finance.
5. **Time zone is implicit** (`:47`, `:28`). "Yesterday" comes from the server's local clock. The midnight cutoffs come from the database session's time zone. If those two differ from the time zone finance expects, invoices near midnight land in the wrong day's file. Set the time zone explicitly, for example UTC.
6. **The upload has no timeout** (`:42`). If the endpoint stalls, `requests.post` can wait forever and the job never finishes. Add `timeout=` and consider one or two retries.
7. **A missed day can't be re-run.** The date is always yesterday. If the job fails on Tuesday night, you can't export Monday's invoices without editing code. Accept an optional `--date` argument.

## Low

8. **The upload URL is read when the module is imported** (`:16`). If `FINANCE_UPLOAD_URL` isn't set, even importing the file for a test crashes with `KeyError`. Read it inside `run()` or `upload()`.
9. **INFO logs are never printed.** Nothing configures logging, so the "export finished" line never appears. Call `logging.basicConfig(level=logging.INFO)` in `__main__`.
10. **The CSV file is written in place.** If the job crashes mid-write, a half-written CSV is left in `/var/exports`, which also holds email addresses with default file permissions. Write to a temp file and rename it, and restrict the folder's permissions.
11. **`fetchall()` loads the whole day into memory.** That's fine at current volumes. Note it in case volumes grow.

**A question for finance:** does the file actually need `customer_email`? If not, dropping that column removes most of the personal-data concern in items 2 and 10.

**What I couldn't check:** I only read the code. Nothing was run, and the referenced test file wasn't here to read.

VERDICT: NOT READY
