We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8df4c4 commit 8c71b16Copy full SHA for 8c71b16
1 file changed
server/src/handlers/file_handler.rs
@@ -18,6 +18,7 @@ use crate::{
18
organization_operator::{get_file_size_sum_org, hash_function},
19
},
20
};
21
+use actix::Arbiter;
22
use actix_web::{web, HttpResponse};
23
use base64::{
24
alphabet,
@@ -720,14 +721,16 @@ pub async fn upload_html_page(
720
721
return Err(ServiceError::BadRequest("Webhook secret does not match.".to_string()).into());
722
}
723
- process_crawl_doc(
724
- dataset_id,
725
- req_payload.scrape_id,
726
- req_payload.data,
727
- broccoli_queue,
728
- pool,
729
- )
730
- .await?;
+ Arbiter::new().spawn(async move {
+ let _ = process_crawl_doc(
+ dataset_id,
+ req_payload.scrape_id,
+ req_payload.data,
+ broccoli_queue,
+ pool,
731
+ )
732
+ .await;
733
+ });
734
735
Ok(HttpResponse::NoContent().finish())
736
0 commit comments