Skip to content

Commit

Permalink
Merge pull request #22 from isankadn/dev
Browse files Browse the repository at this point in the history
na
  • Loading branch information
isankadn authored Mar 24, 2024
2 parents ee0d39f + 9a9ed34 commit 48eed91
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

Inside "mongo-to-clickhouse" container run this.

./historical_data saikyo 2020-01-01 2021-12-31
RUST_LOG=info ./historical_data saikyo 2020-01-01 2021-12-31
8 changes: 7 additions & 1 deletion historical_data/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,13 @@ async fn main() -> Result<(), Box<dyn Error>> {
.unwrap();
});

tokio::spawn(retry_failed_batches(app_state));
let handle = tokio::spawn(retry_failed_batches(app_state));

if let Err(e) = handle.await {
error!("retry_failed_batches task failed: {}", e);
} else {
info!("Processing finished, exiting...");
}

signal::ctrl_c().await?;
info!("Received shutdown signal, shutting down gracefully...");
Expand Down

0 comments on commit 48eed91

Please sign in to comment.