Skip to content

Commit

Permalink
EdgeHub: More robust backup operation (#6974)
Browse files Browse the repository at this point in the history
  • Loading branch information
and-rewsmith authored May 24, 2023
1 parent ee5fd5e commit 238c121
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,15 @@ static async Task<int> MainAsync(IConfigurationRoot configuration)
}

logger.LogInformation("Stopping the protocol heads...");
await Task.WhenAll(mqttBrokerProtocolHead.CloseAsync(CancellationToken.None), edgeHubProtocolHead.CloseAsync(CancellationToken.None));
logger.LogInformation("Protocol heads stopped.");
try
{
await Task.WhenAll(mqttBrokerProtocolHead.CloseAsync(CancellationToken.None), edgeHubProtocolHead.CloseAsync(CancellationToken.None));
logger.LogInformation("Protocol heads stopped.");
}
catch (Exception ex)
{
logger.LogError($"Error stopping protocol heads: {ex.Message}");
}

await CloseDbStoreProviderAsync(container);
}
Expand Down
1 change: 1 addition & 0 deletions edgelet/build/linux/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ case "$PACKAGE_OS.$PACKAGE_ARCH" in
curl git make rpm-build \
gcc gcc-c++ \
libcurl-devel libuuid-devel openssl-devel &&
git config --global --add safe.directory \'*\'
'
;;

Expand Down

0 comments on commit 238c121

Please sign in to comment.