fix: enqueue_after_commit instead of instantly
This commit is contained in:
parent
17ebc5ee4d
commit
16fa5ec9bd
1 changed files with 7 additions and 1 deletions
|
|
@ -116,7 +116,13 @@ def process_workflow_actions(doc, state):
|
|||
create_workflow_actions_for_roles(roles, doc)
|
||||
|
||||
if send_email_alert(workflow):
|
||||
enqueue(send_workflow_action_email, queue="short", users_data=list(user_data_map.values()), doc=doc)
|
||||
enqueue(
|
||||
send_workflow_action_email,
|
||||
queue="short",
|
||||
users_data=list(user_data_map.values()),
|
||||
doc=doc,
|
||||
enqueue_after_commit=True,
|
||||
)
|
||||
|
||||
|
||||
@frappe.whitelist(allow_guest=True)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue