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

perf: 任务回调添加任务输出数据 #7554 #7566

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lTimej
Copy link
Collaborator

@lTimej lTimej commented Sep 19, 2024

No description provided.

@@ -98,7 +98,10 @@ def _url_callback(self):
url = self.record.url
response = None
try:
response = requests.post(url, data=self.extra_info)
task = TaskFlowInstance.objects.get(id=self.task_id)
data = task.get_task_detail()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里不太建议再多做一次 db 查询,是不是有可能从 callback 的源头就把这个数据塞进去

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants