示例#1
0
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)
示例#2
0
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)
示例#3
0
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)
示例#5
0
文件: cli.py 项目: maticaZA/basic
def purge_all_tasks():
    from frappe.utils.doctor import purge_pending_tasks
    count = purge_pending_tasks()
    print "Purged {} tasks".format(count)
示例#6
0
文件: cli.py 项目: aambernath/frappe
def purge_all_tasks():
	from frappe.utils.doctor import purge_pending_tasks
	count = purge_pending_tasks()
	print "Purged {} tasks".format(count)