Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复手动执行完成的工单没有发送通知的问题#1284 #1304

Merged
merged 1 commit into from
Dec 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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