Pārlūkot izejas kodu

Fix advanced chat workflow event handler signature mismatch (#25078)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
tags/1.8.1
-LAN- pirms 1 mēnesi
vecāks
revīzija
a384ae9140
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam

+ 1
- 1
Makefile Parādīt failu

prepare-api: prepare-api:
@echo "🔧 Setting up API environment..." @echo "🔧 Setting up API environment..."
@cp -n api/.env.example api/.env 2>/dev/null || echo "API .env already exists" @cp -n api/.env.example api/.env 2>/dev/null || echo "API .env already exists"
@cd api && uv sync --dev --extra all
@cd api && uv sync --dev
@cd api && uv run flask db upgrade @cd api && uv run flask db upgrade
@echo "✅ API environment prepared (not started)" @echo "✅ API environment prepared (not started)"



+ 1
- 1
api/core/app/apps/advanced_chat/generate_task_pipeline.py Parādīt failu

err = self._base_task_pipeline._handle_error(event=event, session=session, message_id=self._message_id) err = self._base_task_pipeline._handle_error(event=event, session=session, message_id=self._message_id)
yield self._base_task_pipeline._error_to_stream_response(err) yield self._base_task_pipeline._error_to_stream_response(err)


def _handle_workflow_started_event(self, **kwargs) -> Generator[StreamResponse, None, None]:
def _handle_workflow_started_event(self, *args, **kwargs) -> Generator[StreamResponse, None, None]:
"""Handle workflow started events.""" """Handle workflow started events."""
with self._database_session() as session: with self._database_session() as session:
workflow_execution = self._workflow_cycle_manager.handle_workflow_run_start() workflow_execution = self._workflow_cycle_manager.handle_workflow_run_start()

+ 3
- 2
api/extensions/storage/clickzetta_volume/file_lifecycle.py Parādīt failu

"""ClickZetta Volume file lifecycle management """ClickZetta Volume file lifecycle management


This module provides file lifecycle management features including version control, automatic cleanup, backup and restore.
Supports complete lifecycle management for knowledge base files.
This module provides file lifecycle management features including version control,
automatic cleanup, backup and restore. Supports complete lifecycle management for
knowledge base files.
""" """


import json import json

+ 2
- 1
api/extensions/storage/clickzetta_volume/volume_permissions.py Parādīt failu



except Exception: except Exception:
logger.exception("User Volume permission check failed") logger.exception("User Volume permission check failed")
# For User Volume, if permission check fails, it might be a configuration issue, provide friendlier error message
# For User Volume, if permission check fails, it might be a configuration issue,
# provide friendlier error message
logger.info("User Volume permission check failed, but permission checking is disabled in this version") logger.info("User Volume permission check failed, but permission checking is disabled in this version")
return False return False



Notiek ielāde…
Atcelt
Saglabāt