Would it work to simply define a

connection = connections['job_init']

one at the top of the module?