Ted-Jiang commented on a change in pull request #1783: URL: https://github.com/apache/arrow-datafusion/pull/1783#discussion_r802299945
########## File path: ballista/rust/executor/src/main.rs ########## @@ -112,6 +116,21 @@ async fn main() -> Result<()> { .context("Could not connect to scheduler")?; let scheduler_policy = opt.task_scheduling_policy; + let cleanup_ttl = opt.executor_cleanup_ttl; + + if opt.executor_cleanup_enable { + let interval = opt.executor_cleanup_interval; + let mut interval_time = time::interval(Core_Duration::from_secs(interval)); + tokio::spawn(async move { + loop { + interval_time.tick().await; + clean_shuffle_data_loop(&work_dir, cleanup_ttl) + .await + .unwrap(); Review comment: Thanks! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org