Skip to content

Commit

Permalink
squash w/ startup/shutdown. Make delay server migration sleep time op…
Browse files Browse the repository at this point in the history
…tional again.
  • Loading branch information
korydraughn committed Nov 9, 2024
1 parent ffe9ff5 commit 4aa8237
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion schemas/configuration/v5/server_config.json.in
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
"default_temporary_password_lifetime_in_seconds",
"maximum_size_for_single_buffer_in_megabytes",
"maximum_temporary_password_lifetime_in_seconds",
"migrate_delay_server_sleep_time_in_seconds",
"transfer_buffer_size_for_parallel_transfer_in_megabytes",
"transfer_chunk_size_for_parallel_transfer_in_megabytes"
]
Expand Down
3 changes: 1 addition & 2 deletions server/main_server/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1112,8 +1112,7 @@ Mandatory arguments to long options are mandatory for short options too.
}
}

// TODO Update irods/irods_docs - made /advanced_settings/migrate_delay_server_sleep_time_in_seconds a required property.
const auto migration_sleep_time_in_seconds = irods::get_advanced_setting<int>(irods::KW_CFG_MIGRATE_DELAY_SERVER_SLEEP_TIME_IN_SECONDS);
const auto migration_sleep_time_in_seconds = irods::get_advanced_setting_or_default<int>(irods::KW_CFG_MIGRATE_DELAY_SERVER_SLEEP_TIME_IN_SECONDS, 5);
const auto now = std::chrono::steady_clock::now();

if (now - _time_start < std::chrono::seconds{migration_sleep_time_in_seconds}) {
Expand Down

0 comments on commit 4aa8237

Please sign in to comment.