Skip to content

Commit

Permalink
Merge pull request #1304 from nick2wang/nick-patch
Browse files Browse the repository at this point in the history
修复手动执行完成的工单没有发送通知的问题#1284
  • Loading branch information
hhyo committed Dec 28, 2021
2 parents c8006ff + 9ff62a7 commit 3f6b517
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sql/sql_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from common.utils.const import Const, WorkflowDict
from common.utils.extend_json_encoder import ExtendJSONEncoder
from sql.engines.models import ReviewResult, ReviewSet
from sql.notify import notify_for_audit
from sql.notify import notify_for_audit, notify_for_execute
from sql.models import ResourceGroup
from sql.utils.resource_group import user_groups, user_instances
from sql.utils.tasks import add_sql_schedule, del_schedule
Expand Down Expand Up @@ -424,6 +424,8 @@ def execute(request):
operation_info='确认手工执行结束',
operator=request.user.username,
operator_display=request.user.display)
# 发送消息
notify_for_execute(SqlWorkflow.objects.get(id=workflow_id))
return HttpResponseRedirect(reverse('sql:detail', args=(workflow_id,)))


Expand Down

0 comments on commit 3f6b517

Please sign in to comment.