Federation activities are now created at write time via try_publish() instead of relying on async event handlers. Fixes race condition where multiple EventProcessors could consume post.published events in apps that couldn't meaningfully process them. AP delivery (federation.activity_created → inbox POST) stays async. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
11 lines
527 B
Python
11 lines
527 B
Python
"""Shared event handlers (replaces glue.setup.register_glue_handlers)."""
|
|
|
|
|
|
def register_shared_handlers():
|
|
"""Import handler modules to trigger registration. Call at app startup."""
|
|
import shared.events.handlers.container_handlers # noqa: F401
|
|
import shared.events.handlers.login_handlers # noqa: F401
|
|
import shared.events.handlers.order_handlers # noqa: F401
|
|
# federation_handlers removed — publication is now inline at write sites
|
|
import shared.events.handlers.ap_delivery_handler # noqa: F401
|