def show_pending_jobs(context, site=None): "Get diagnostic info about background jobs" if not site: site = get_site(context) from frappe.utils.doctor import pending_jobs as _pending_jobs return _pending_jobs(site=site)