Skip to content

Conversation

@glin93
Copy link
Contributor

@glin93 glin93 commented Nov 27, 2025

…d propagation

  • Make from_memory_type and to_memory_type fields optional in ScheduleLogForWebItem
  • This fixes RabbitMQ log submission validation errors in cloud service scenario
  • Add task_id field to ScheduleMessageItem and ScheduleLogForWebItem
  • Propagate task_id from API request through scheduler to web logs
  • Add logging for preference memory additions in _pref_add_message_consumer

Fixes validation error:
'2 validation errors for ScheduleLogForWebItem
from_memory_type Field required
to_memory_type Field required'

Changes:

  • src/memos/mem_scheduler/schemas/message_schemas.py: Add task_id fields
  • src/memos/multi_mem_cube/single_cube.py: Pass task_id to ScheduleMessageItem
  • src/memos/mem_scheduler/general_scheduler.py: Propagate task_id to logs

Description

Summary: (summary)

Fix: #(issue)

Docs Issue/PR: (docs-issue-or-pr-link)

Reviewer: @tangg555

Checklist:

  • I have performed a self-review of my own code | 我已自行检查了自己的代码
  • I have commented my code in hard-to-understand areas | 我已在难以理解的地方对代码进行了注释
  • I have added tests that prove my fix is effective or that my feature works | 我已添加测试以证明我的修复有效或功能正常
  • I have created related documentation issue/PR in MemOS-Docs (if applicable) | 我已在 MemOS-Docs 中创建了相关的文档 issue/PR(如果适用)
  • I have linked the issue to this PR (if applicable) | 我已将 issue 链接到此 PR(如果适用)
  • I have mentioned the person who will review this PR | 我已提及将审查此 PR 的人

@glin93 glin93 force-pushed the fix/rabbitmq-log-validation-error branch from 464dd01 to 5c361cc Compare November 27, 2025 08:41
@glin93 glin93 force-pushed the fix/rabbitmq-log-validation-error branch from 5c361cc to a7137a9 Compare November 27, 2025 08:48
…d propagation

- Make from_memory_type and to_memory_type fields optional in ScheduleLogForWebItem
- This fixes RabbitMQ log submission validation errors in cloud service scenario
- Add task_id field to ScheduleMessageItem and ScheduleLogForWebItem
- Propagate task_id from API request through scheduler to web logs
- Add logging for preference memory additions in _pref_add_message_consumer

Fixes validation error:
'2 validation errors for ScheduleLogForWebItem
from_memory_type Field required
to_memory_type Field required'

Changes:
- src/memos/mem_scheduler/schemas/message_schemas.py: Add task_id fields
- src/memos/multi_mem_cube/single_cube.py: Pass task_id to ScheduleMessageItem
- src/memos/mem_scheduler/general_scheduler.py: Propagate task_id to logs
@glin93 glin93 force-pushed the fix/rabbitmq-log-validation-error branch from a7137a9 to 7efec70 Compare November 27, 2025 09:33
@tangg555 tangg555 merged commit aef6bcf into dev Nov 27, 2025
20 checks passed
glin93 added a commit that referenced this pull request Nov 27, 2025
#538)

fix: Make from_memory_type and to_memory_type optional and add task_id propagation

- Make from_memory_type and to_memory_type fields optional in ScheduleLogForWebItem
- This fixes RabbitMQ log submission validation errors in cloud service scenario
- Add task_id field to ScheduleMessageItem and ScheduleLogForWebItem
- Propagate task_id from API request through scheduler to web logs
- Add logging for preference memory additions in _pref_add_message_consumer

Fixes validation error:
'2 validation errors for ScheduleLogForWebItem
from_memory_type Field required
to_memory_type Field required'

Changes:
- src/memos/mem_scheduler/schemas/message_schemas.py: Add task_id fields
- src/memos/multi_mem_cube/single_cube.py: Pass task_id to ScheduleMessageItem
- src/memos/mem_scheduler/general_scheduler.py: Propagate task_id to logs

Co-authored-by: glin1993@outlook.com <>
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.

3 participants