Skip to content

Commit

Permalink
chore(backend): Improve concurrency message
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 committed Oct 11, 2023
1 parent fda33a2 commit 885ad01
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {

let is_bulk_enabled = env::var("RCH_ENABLE_BULK").unwrap_or_else(|_| "0".into()) == "1";
if is_bulk_enabled {
log::info!(target: LOG_TARGET, "Bulk endpoints enabled.");
let pool = create_db().await?;
let _registry = create_job_registry(&pool).await?;
let routes = create_routes(Some(pool));
Expand Down Expand Up @@ -104,6 +103,11 @@ async fn create_job_registry(pool: &Pool<Postgres>) -> Result<OwnedHandle, sqlx:
.run()
.await?;

log::info!(
target: LOG_TARGET,
"Bulk endpoints enabled with concurrency min={min_task_conc} to max={max_conc_task_fetch}."
);

Ok(registry)
}

Expand Down

0 comments on commit 885ad01

Please sign in to comment.