This may be more my preference but when logging function calls I tend to write them like this:
`logger.debug("send_job_completion_mail(%r), job_id)`

At the very least you should use the `logger.debug("%s", foo)` format to do the sub.