Skip to content
Merged
Show file tree
Hide file tree
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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plane/src/database/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ impl<'a> BackendDatabase<'a> {
update backend
set
last_keepalive = now()
where id = $1
where id = $1 and last_status != 'terminated'
"#,
backend_id.to_string(),
)
Expand Down
2 changes: 1 addition & 1 deletion plane/src/drone/runtime/docker/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::sync::{Arc, Mutex};
use tokio::time::{Duration, Instant};
use tokio_stream::StreamExt;

const METRICS_INTERVAL: Duration = Duration::from_secs(5);
const METRICS_INTERVAL: Duration = Duration::from_secs(10);

fn stream_metrics(
docker: &Docker,
Expand Down
2 changes: 1 addition & 1 deletion plane/src/heartbeat_consts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use std::time::Duration;

/// How often the drone should emit a heartbeat.
pub const HEARTBEAT_INTERVAL: Duration = Duration::from_secs(5);
pub const HEARTBEAT_INTERVAL: Duration = Duration::from_secs(7);

/// If we have not heard from a drone in this many seconds,
/// we will consider it unhealthy. This means that we will
Expand Down
Loading