Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(queue): use notification ingress queue (#4350)

Will Hutchinson849b4fe4ea1d
diff --git a/rust/cloud-storage/ai_tools/src/build_context.rs b/rust/cloud-storage/ai_tools/src/build_context.rs
index 4fda1681a2..504dc4a792 100644
--- a/rust/cloud-storage/ai_tools/src/build_context.rs
+++ b/rust/cloud-storage/ai_tools/src/build_context.rs
@@ -132,7 +132,7 @@ pub async fn build_tool_service_context_from_env(
sqs_client = sqs_client.gmail_ops_queue(gmail_ops_queue.as_ref());
}
let notification_queue = if enable_notification_queue {
- let notification_queue = macro_queues::NotificationQueue::new();
+ let notification_queue = macro_queues::NotificationIngressQueue::new();
ToolNotificationQueue::Sqs(SqsQueue::new(
aws_sqs_client,
notification_queue.to_string(),
diff --git a/rust/cloud-storage/authentication_service/src/main.rs b/rust/cloud-storage/authentication_service/src/main.rs
index 26f18c44e2..80f288c163 100644
--- a/rust/cloud-storage/authentication_service/src/main.rs
+++ b/rust/cloud-storage/authentication_service/src/main.rs
@@ -181,7 +181,7 @@ async fn main() -> anyhow::Result<()> {
.await
.context("failed to get multiplexed redis connection")?;
- let notification_queue = macro_queues::NotificationQueue::new();
+ let notification_queue = macro_queues::NotificationIngressQueue::new();
let search_event_queue = macro_queues::SearchEventQueue::new();
let link_manager_queue = macro_queues::LinkManagerQueue::new();
let email_backfill_queue = macro_queues::EmailBackfillQueue::new();
diff --git a/rust/cloud-storage/document_cognition_service/src/main.rs b/rust/cloud-storage/document_cognition_service/src/main.rs
index 4ab8678e6f..37d067ae91 100644
--- a/rust/cloud-storage/document_cognition_service/src/main.rs
+++ b/rust/cloud-storage/document_cognition_service/src/main.rs
@@ -100,7 +100,7 @@ async fn main() -> anyhow::Result<()> {
let gmail_ops_queue = macro_queues::GmailOpsQueue::new();
let search_event_queue = macro_queues::SearchEventQueue::new();
let ai_projection_queue = macro_queues::AiProjectionQueue::new();
- let notification_queue = macro_queues::NotificationQueue::new();
+ let notification_queue = macro_queues::NotificationIngressQueue::new();
let sqs_client = sqs_client::SQS::new(queue_aws_client)
.document_text_extractor_queue(&document_text_extractor_queue)
.chat_delete_queue(&chat_delete_queue)
diff --git a/rust/cloud-storage/document_storage_service/src/main.rs b/rust/cloud-storage/document_storage_service/src/main.rs
index f5382dd8f1..fcb4823273 100644
--- a/rust/cloud-storage/document_storage_service/src/main.rs
+++ b/rust/cloud-storage/document_storage_service/src/main.rs
@@ -174,7 +174,7 @@ async fn main() -> anyhow::Result<()> {
let search_event_queue = macro_queues::SearchEventQueue::new();
let document_delete_queue = macro_queues::DocumentDeleteQueue::new();
let contacts_queue = macro_queues::ContactsQueue::new();
- let notification_queue = macro_queues::NotificationQueue::new();
+ let notification_queue = macro_queues::NotificationIngressQueue::new();
let sqs_client = sqs_client::SQS::new(aws_sdk_sqs::Client::new(&aws_config))
.search_event_queue(&search_event_queue)
.document_delete_queue(&document_delete_queue);
diff --git a/rust/cloud-storage/email_service/src/bin/pubsub_workers/pubsub_workers.rs b/rust/cloud-storage/email_service/src/bin/pubsub_workers/pubsub_workers.rs
index cf43a55be5..7fa79de24b 100644
--- a/rust/cloud-storage/email_service/src/bin/pubsub_workers/pubsub_workers.rs
+++ b/rust/cloud-storage/email_service/src/bin/pubsub_workers/pubsub_workers.rs
@@ -77,7 +77,7 @@ async fn main() -> anyhow::Result<()> {
let sfs_delete_queue = macro_queues::SfsDeleteQueue::new();
let link_manager_queue = macro_queues::LinkManagerQueue::new();
let contacts_queue = macro_queues::ContactsQueue::new();
- let notification_queue = macro_queues::NotificationQueue::new();
+ let notification_queue = macro_queues::NotificationIngressQueue::new();
let sqs_client = sqs_client::SQS::new(aws_sdk_sqs::Client::new(&gmail_queue_aws_config))
.gmail_inbox_sync_queue(&gmail_inbox_sync_queue)
diff --git a/rust/cloud-storage/scheduled_action/src/bins/service.rs b/rust/cloud-storage/scheduled_action/src/bins/service.rs
index b087f09bea..55f8f571c1 100644
--- a/rust/cloud-storage/scheduled_action/src/bins/service.rs
+++ b/rust/cloud-storage/scheduled_action/src/bins/service.rs
@@ -48,7 +48,7 @@ async fn main() -> Result<()> {
let notification_ingress = Arc::new(SqsNotificationIngress {
queue: SqsQueue::new(
aws_sdk_sqs::Client::new(&aws_config),
- macro_queues::NotificationQueue::new().to_string(),
+ macro_queues::NotificationIngressQueue::new().to_string(),
),
});