feat(cli): deploy area --id <areaId> [--force] bulk-deploys an area subtree with deploy site's deadline and exit-code contract (Gitea #40)
This commit is contained in:
@@ -93,6 +93,7 @@ internal static class CommandHelpers
|
||||
// Every alias of a deploy contract shares the same policy. The server bounds
|
||||
// the operation; a shorter client deadline can report failure while it applies.
|
||||
var requestTimeout = timeout ?? (command is MgmtDeployInstanceCommand or MgmtDeployArtifactsCommand or MgmtDeploySiteCommand
|
||||
or MgmtDeployAreaCommand
|
||||
? Timeout.InfiniteTimeSpan
|
||||
: TimeSpan.FromSeconds(30));
|
||||
var response = await client.SendCommandAsync(commandName, command, requestTimeout);
|
||||
|
||||
Reference in New Issue
Block a user