Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

atf: increase idle connector timeout from 10m => 4 hours #290

Merged
merged 1 commit into from
Jan 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions airbyte-to-flow/src/connector_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ pub async fn run_airbyte_source_connector(
let _ = ping_sender.try_send(());
});

// 10 minute timeout on ping
// Four hour timeout on inactivity.
let ping_timeout_task = async move {
loop {
tokio::select! {
Some(_) = ping_receiver.next() => { continue },
_ = tokio::time::sleep(tokio::time::Duration::from_secs(60 * 10)) => {
tracing::warn!("connector has been idle for the past 10 minutes. restarting.");
_ = tokio::time::sleep(tokio::time::Duration::from_secs(4 * 3600)) => {
tracing::warn!("Connector has been idle for the past four hours. Restarting...");
break
}
}
Expand Down
Loading