Set frappe.flags.in_patch when running a patch
This commit is contained in:
parent
2666e19641
commit
bfd8b88b39
1 changed files with 1 additions and 0 deletions
|
|
@ -93,6 +93,7 @@ def executed(patchmodule):
|
|||
|
||||
def block_user(block):
|
||||
"""stop/start execution till patch is run"""
|
||||
frappe.local.flags.in_patch = block
|
||||
frappe.db.begin()
|
||||
msg = "Patches are being executed in the system. Please try again in a few moments."
|
||||
frappe.db.set_global('__session_status', block and 'stop' or None)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue