hyperactor_remote/config.rs
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 * All rights reserved.
4 *
5 * This source code is licensed under the BSD-style license found in the
6 * LICENSE file in the root directory of this source tree.
7 */
8
9//! Configuration keys for `hyperactor_remote`.
10
11use std::time::Duration;
12
13use hyperactor_config::CONFIG;
14use hyperactor_config::ConfigAttr;
15use hyperactor_config::attrs::declare_attrs;
16
17declare_attrs! {
18 /// Grace period a child proc gets to drain and exit after a graceful stop
19 /// request before the spawner force-kills the OS process.
20 @meta(CONFIG = ConfigAttr::new(
21 Some("HYPERACTOR_REMOTE_STOP_GRACE_PERIOD".to_string()),
22 Some("stop_grace_period".to_string()),
23 ))
24 pub attr STOP_GRACE_PERIOD: Duration = Duration::from_secs(10);
25}