Version 6.x.x Source

frappe.utils.doctor.celery_doctor (site=None)

No docs


frappe.utils.doctor.check_if_workers_online ()

No docs


frappe.utils.doctor.doctor ()

Prints diagnostic information for the scheduler


frappe.utils.doctor.dump_queue_status (site=None)

Dumps pending events and tasks per queue


frappe.utils.doctor.get_pending_task_count ()

Get count of pending tasks


frappe.utils.doctor.get_queues (site=None)

Returns the name of queues where frappe enqueues tasks as per the configuration


frappe.utils.doctor.get_redis_conn ()

Returns the redis connection that celery would use


frappe.utils.doctor.get_running_tasks ()

No docs


frappe.utils.doctor.get_task_body (taskstr)

No docs


frappe.utils.doctor.get_task_count_for_queue (queue)

For a given queue, returns the count of every pending task and aggregate of events pending


frappe.utils.doctor.get_timedout_locks ()

Get list of stale locks from all sites


frappe.utils.doctor.purge_pending_tasks (event=all)

Purge tasks of the event event type. Passing 'all' will not purge all events but of the all event type, ie. the ones that are enqueued every five mintues and would any leave daily, hourly and weekly tasks