diff options
author | Roman Melnikov | 2023-11-01 12:42:30 +0100 |
---|---|---|
committer | Roman Melnikov | 2023-11-02 11:29:52 +0100 |
commit | aeeee3c1e3e9bfc38462cb315b6e19ee9fe6db70 (patch) | |
tree | db04d30c6df0f6f19ccdfc6070da00c5bbf4d1b8 /src/data.rs | |
parent | d50737080327575d78fe7490b20fcc3eba9f1d72 (diff) |
[Chore] Make activation wait timeout configurable
Problem: Currently profile activation waiting timeout is hardcoded to
240 seconds, see https://github.com/serokell/deploy-rs/pull/48.
In some cases, this timeout can be exceeded (e.g.
activation performs a heavy DB migration and waits for it to finish
before considering the profile activation succesful).
Solution: Make this timeout configurable via 'activationTimeout' deploy
attribute or corresponding '--activation-timeout' CLI option. For the
sake of backward compatibility, the new 'wait' subcommand
'--activation-timeout' option is made optional and defaults to 240
seconds if it wasn't provided.
Diffstat (limited to 'src/data.rs')
-rw-r--r-- | src/data.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/data.rs b/src/data.rs index 3b3e2c9..c507a31 100644 --- a/src/data.rs +++ b/src/data.rs @@ -25,6 +25,8 @@ pub struct GenericSettings { pub auto_rollback: Option<bool>, #[serde(rename(deserialize = "confirmTimeout"))] pub confirm_timeout: Option<u16>, + #[serde(rename(deserialize = "activationTimeout"))] + pub activation_timeout: Option<u16>, #[serde(rename(deserialize = "tempPath"))] pub temp_path: Option<PathBuf>, #[serde(rename(deserialize = "magicRollback"))] |