I’m wondering about razorpay because of this line:
job_name=u'frappe.integrations.doctype.razorpay_settings.razorpay_settings.capture_payment', kwargs={},
I’m starting think this is a bug which is causing razorpay to be called when we haven’t enabled it. Only hunch and I’m speaking with little to no experience with ERPNext.