예제 #1
0
파일: commands.py 프로젝트: amirtds/frappe
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)
예제 #4
0
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)