File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 11"""Components for managing tasks within the A2A server."""
22
3+ import logging
4+
35from a2a .server .tasks .base_push_notification_sender import (
46 BasePushNotificationSender ,
57)
6- from a2a .server .tasks .database_task_store import DatabaseTaskStore
78from a2a .server .tasks .inmemory_push_notification_config_store import (
89 InMemoryPushNotificationConfigStore ,
910)
1819from a2a .server .tasks .task_updater import TaskUpdater
1920
2021
22+ log = logging .getLogger (__name__ )
23+
24+ try :
25+ from a2a .server .tasks .database_task_store import DatabaseTaskStore
26+ except ImportError as e :
27+ # If the database task store is not available, we can still use in-memory stores.
28+ log .debug (
29+ 'DatabaseTaskStore not loaded. This is expected if database dependencies are not installed. Error: %s' ,
30+ e ,
31+ )
32+ DatabaseTaskStore = None
33+
2134__all__ = [
2235 'BasePushNotificationSender' ,
2336 'DatabaseTaskStore' ,
You can’t perform that action at this time.
0 commit comments