Fix celery task error#9
Open
jaffrey-deepsource wants to merge 12 commits into
Open
Conversation
…d support for secure storage mode. Handled status update logic for workflow and node execution, ensuring terminal state is not overwritten by non-terminal state. Added support for secure storage mode parameters. Optimized database operations and added integrity error handling.
处理工作流执行和工作流节点执行更新时,确保终端状态不会被非终端状态覆盖 当插入出现IntegrityError时,改为记录警告并抛出异常让Celery重试
将工作流执行和节点执行中的终端状态集合提取为模块级常量,提高代码可读性和维护性 优化输入和输出数据的空值检查,使用显式的is not None判断
# Conflicts: # api/tasks/workflow_execution_tasks.py # api/tasks/workflow_node_execution_tasks.py
清理两个任务文件中未使用的sqlalchemy.orm.sessionmaker导入,简化依赖并提高代码整洁度
…celery-task-error # Conflicts: # api/tasks/workflow_execution_tasks.py # api/tasks/workflow_node_execution_tasks.py
DeepSource reviewed changes in the commit range For detailed review results, please see the PR on DeepSource ↗ PR Report Card
Code Review Summary
How are these analyzer statuses calculated?Administrators can configure which issue categories are reported and cause analysis to be marked as failed when detected. This helps prevent bad and insecure code from being introduced in the codebase. If you're an administrator, you can modify this in the repository's settings.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.