Skip to content

Commit

Permalink
feat(core/init): revise termination timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
loyd committed Oct 11, 2023
1 parent 9830f6e commit 9a6c5d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elfo-core/src/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ struct TerminateSystem;
struct CheckMemoryUsageTick;

// TODO: make these values configurable.
const SEND_CLOSING_TERMINATE_AFTER: Duration = Duration::from_secs(30);
const STOP_GROUP_TERMINATION_AFTER: Duration = Duration::from_secs(45);
const SEND_CLOSING_TERMINATE_AFTER: Duration = Duration::from_secs(25);
const STOP_GROUP_TERMINATION_AFTER: Duration = Duration::from_secs(35);

async fn termination(mut ctx: Context, topology: Topology) {
ctx.attach(Signal::new(SignalKind::UnixTerminate, TerminateSystem));
Expand Down

0 comments on commit 9a6c5d7

Please sign in to comment.