コード例 #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
ファイル: commands.py プロジェクト: RicardoJohann/frappe
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)