Skip to content

Commit 13d3271

Browse files
code cleans ,and add exception message. (#24536)
Signed-off-by: zhanluxianshen <zhanluxianshen@163.com>
1 parent 6727ff6 commit 13d3271

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

api/core/plugin/backwards_invocation/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def invoke_workflow_app(
154154
"""
155155
workflow = app.workflow
156156
if not workflow:
157-
raise ValueError("")
157+
raise ValueError("unexpected app type")
158158

159159
return WorkflowAppGenerator().generate(
160160
app_model=app,

api/docker/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if [[ "${MODE}" == "worker" ]]; then
3131
fi
3232

3333
exec celery -A app.celery worker -P ${CELERY_WORKER_CLASS:-gevent} $CONCURRENCY_OPTION \
34-
--max-tasks-per-child ${MAX_TASK_PRE_CHILD:-50} --loglevel ${LOG_LEVEL:-INFO} \
34+
--max-tasks-per-child ${MAX_TASKS_PER_CHILD:-50} --loglevel ${LOG_LEVEL:-INFO} \
3535
-Q ${CELERY_QUEUES:-dataset,mail,ops_trace,app_deletion,plugin,workflow_storage,conversation}
3636

3737
elif [[ "${MODE}" == "beat" ]]; then

api/fields/data_source_fields.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
"notion_info": fields.List(fields.Nested(integrate_workspace_fields)),
2525
}
2626

27-
integrate_icon_fields = {"type": fields.String, "url": fields.String, "emoji": fields.String}
28-
2927
integrate_page_fields = {
3028
"page_name": fields.String,
3129
"page_id": fields.String,

0 commit comments

Comments
 (0)