File tree 1 file changed +6
-1
lines changed 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
from sentry .silo .base import SiloMode
4
4
from sentry .tasks .base import instrumented_task
5
+ from sentry .taskworker .config import TaskworkerConfig
6
+ from sentry .taskworker .namespaces import notifications_tasks
5
7
from sentry .utils .sdk import bind_organization_context
6
8
7
9
logger = logging .getLogger (__name__ )
@@ -26,8 +28,11 @@ def get_activity_notifiers(project):
26
28
name = "sentry.tasks.activity.send_activity_notifications" ,
27
29
queue = "activity.notify" ,
28
30
silo_mode = SiloMode .REGION ,
31
+ taskworker_config = TaskworkerConfig (
32
+ namespace = notifications_tasks ,
33
+ ),
29
34
)
30
- def send_activity_notifications (activity_id ) :
35
+ def send_activity_notifications (activity_id : int ) -> None :
31
36
from sentry .models .activity import Activity
32
37
from sentry .models .organization import Organization
33
38
You can’t perform that action at this time.
0 commit comments