def purge_all_tasks(): "Purge any pending periodic tasks of 'all' event. Doesn't purge hourly, daily and weekly" frappe.init("") from frappe.utils.doctor import purge_pending_tasks count = purge_pending_tasks() print "Purged {} tasks".format(count)
def purge_all_tasks(site=None, event=None): "Purge any pending periodic tasks, if event option is not given, it will purge everything for the site" from frappe.utils.doctor import purge_pending_tasks frappe.init(site or "") count = purge_pending_tasks(event=None, site=None) print "Purged {} tasks".format(count)
def purge_all_tasks(site=None, event=None): "Purge any pending periodic tasks, if event option is not given, it will purge everything for the site" from frappe.utils.doctor import purge_pending_tasks frappe.init(site or '') count = purge_pending_tasks(event=None, site=None) print "Purged {} tasks".format(count)
def purge_all_tasks(): "Purge any pending periodic tasks of 'all' event. Doesn't purge hourly, daily and weekly" from frappe.utils.doctor import purge_pending_tasks count = purge_pending_tasks() print "Purged {} tasks".format(count)
def purge_all_tasks(): from frappe.utils.doctor import purge_pending_tasks count = purge_pending_tasks() print "Purged {} tasks".format(count)