feat: [2026NewYearChallenge] Event-Driven Orchestration (Track B) #218
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.
[2026NewYearChallenge] Event-Driven Orchestration Implementation (Track B)
Summary
I have successfully implemented a decoupled, event-driven architecture for MemU as requested in Issue #190. This architecture offloads heavy memory processing to background Celery workers, preventing the main API from blocking.
Key Features Implemented:
EventManager(Pub/Sub pattern) to trigger signals likeon_memory_saved.CeleryDispatcherto route these events to Redis/Celery.worker.pyentry point.src/memu/task_utils) to ensure production readiness.Verification:
examples/example_4_event_driven_orchestration.pyconfirms end-to-end event delivery.tests/test_event_driven.py).tests/test_task_validation.py).