Skip to content

Commit 805caf4

Browse files
authored
Tweaks (#880)
1 parent de51aa2 commit 805caf4

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

plane/.sqlx/query-c6ec316a814bac95629bb4af740898e538a03f4378f262c8849392ff57b9e22a.json renamed to plane/.sqlx/query-41e963830001f529faec7d02e28f4800d2891c6fa9376bb77d68be0304a6a457.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plane/src/database/backend.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ impl<'a> BackendDatabase<'a> {
457457
update backend
458458
set
459459
last_keepalive = now()
460-
where id = $1
460+
where id = $1 and last_status != 'terminated'
461461
"#,
462462
backend_id.to_string(),
463463
)

plane/src/drone/runtime/docker/metrics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::sync::{Arc, Mutex};
66
use tokio::time::{Duration, Instant};
77
use tokio_stream::StreamExt;
88

9-
const METRICS_INTERVAL: Duration = Duration::from_secs(5);
9+
const METRICS_INTERVAL: Duration = Duration::from_secs(10);
1010

1111
fn stream_metrics(
1212
docker: &Docker,

plane/src/heartbeat_consts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use std::time::Duration;
1616

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

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

0 commit comments

Comments
 (0)