Skip to content

Commit fa550cd

Browse files
authored
feat!: Decrease the report interval from 60 seconds to 5 seconds. (#40)
1 parent 896d74b commit fa550cd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/config/config.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ const DEFAULT_ORIGIN_HOST: &str = "api.cloudray.io";
1111
pub const METRICS_CPU_SAMPLE_EVERY: Duration = Duration::from_secs(5);
1212
pub const METRICS_CPU_MAX_SAMPLES: usize = 12;
1313
pub const METRICS_COLLECT_EVERY: Duration = Duration::from_secs(60);
14-
pub const REPORT_EVERY: Duration = Duration::from_secs(60);
14+
/// Default interval at which report is sent to the Origin. Some tasks e.g., runlog outputs may expedite this.
15+
pub const REPORT_EVERY: Duration = Duration::from_secs(5);
16+
/// Interval at which report is checked to see if it should be sent.
1517
pub const REPORT_CHECK_EVERY: Duration = Duration::from_secs(2);
1618
pub const RUNLOG_RUN_TIMEOUT: Duration = Duration::from_secs(3600);
1719

0 commit comments

Comments
 (0)