I'm sorry to say it isn't ready to merge tomorrow. Two problems block it: when the job fails, nothing reports the failure, and it writes every customer's email address into the logs. The underlying structure is good, though. The functions are small and each does one job, the SQL uses parameters rather than string building, and files and connections are closed properly. Most of the fixes are a few lines each.

One thing I couldn't check: the docstring says the job is tested by `test_export_job.py`, but that file isn't in this folder. So I reviewed `export_job.py` without seeing any tests.

## Critical

1. **Failures look like successes** (`export_job.py:56-57`). The `except Exception` logs the error and lets `run()` return normally, so the process exits with code 0. For example, if the finance endpoint returns a 500, `raise_for_status()` raises, the error is logged, and cron counts the night as a success. Finance gets no file and nobody is alerted. Fix: use `log.exception(...)` and then re-raise, or call `sys.exit(1)`.

2. **Customer emails go into the logs** (`export_job.py:52`). `[row[1] for row in rows]` logs every customer's email address each night, which is a privacy and compliance exposure. Log only the count.

## High

3. **The upload can hang forever** (`export_job.py:42`). `requests.post` has no `timeout`. If the endpoint stalls, the job never finishes, and the next night's run can overlap with it. Add something like `timeout=60`.

4. **Amounts are computed as floats and ignore currency** (`export_job.py:37`). `amount_cents / 100` turns 500 into `5.0` instead of `5.00`. It also breaks currencies that don't use 2 decimal places: ¥500 stored as 500 becomes `5.0`, which is wrong by 100×. Fix: use `Decimal` with a per-currency exponent, or export `amount_cents` unchanged and let finance convert.

5. **There are almost no tests.** Even going by the docstring, the tests cover only the CSV header and one row. Nothing covers:
   - a failed upload making the job exit non-zero
   - a day with no invoices
   - the day boundaries (an invoice paid at 23:59:59 versus 00:00:00)
   - amount formatting across currencies
   - the log line not containing emails

   Items 1, 2 and 4 would each have been caught by one small test.

## Medium

6. **The day boundaries depend on the server's timezone** (`export_job.py:47` and `:28`). `date.today()` uses the server's local time, and the plain dates are compared against `paid_at` in the database session's timezone. If those two disagree with each other, or with how finance defines a "day", some invoices are exported twice or never. Pick a timezone explicitly (probably UTC) and pass timezone-aware datetimes.

7. **No logging is configured, so the success logs never appear.** The script never calls `logging.basicConfig`, so the `log.info` lines are dropped. Only `log.error` reaches stderr, through Python's fallback handler. Configure logging in `__main__`.

8. **There is no retry and no idempotency.** A brief network error loses the whole night. Re-running the job by hand overwrites the file and uploads it again, so finance may end up with a duplicate. Decide how re-runs should behave and write that down, and consider a small retry with backoff.

9. **CSVs with customer emails pile up on disk** (`export_job.py:15`, `:33`). Each file is created with default permissions and never deleted. The script also assumes `/var/exports` exists. Restrict the file permissions, clean old files up or use a temp file, and create the directory or fail with a clear message.

10. **The config is read when the module is imported** (`export_job.py:16`). If `FINANCE_UPLOAD_URL` isn't set, even `import export_job` (from tests, say) fails with a `KeyError`. Read it inside `run()`, or pass it in, which also makes `upload` easier to test.

## Low

11. **The CSV is not written atomically** (`export_job.py:33`). A crash partway through leaves a truncated file. Write to a `.tmp` file and then `os.replace` it.
12. **An empty day still uploads a header-only file.** That may be what you want, but make it a deliberate choice and cover it with a test.
13. **The `amount` column header doesn't state its unit or precision**, which finance could misread once item 4 is fixed.
14. **The upload has no authentication in the code.** Is it embedded in the URL? If so, the URL is a secret; make sure it's never logged.
15. **`fetchall()` loads the whole day into memory.** That's fine at today's volumes, but worth knowing.
16. **The functions have no type hints or docstrings.** Not a blocker; it just matches the file's current style.

If you fix items 1 to 4 and add tests for them, I'd consider it mergeable, with items 6 to 10 as follow-ups.

VERDICT: NOT READY
