refactor(deploy): retire cross-cluster DeployInstanceCommand wire path (config now fetched)

This commit is contained in:
Joseph Doherty
2026-06-26 14:32:47 -04:00
parent 5c2db9fe70
commit 3e64959582
7 changed files with 24 additions and 92 deletions
@@ -116,29 +116,9 @@ public class CommunicationService
// ── Pattern 1: Instance Deployment ──
/// <summary>
/// Sends a deployment command for an instance to a site.
/// </summary>
/// <param name="siteId">The target site identifier.</param>
/// <param name="command">The deployment command.</param>
/// <param name="cancellationToken">Cancellation token.</param>
/// <returns>The deployment status response.</returns>
public async Task<DeploymentStatusResponse> DeployInstanceAsync(
string siteId, DeployInstanceCommand command, CancellationToken cancellationToken = default)
{
_logger.LogDebug(
"Sending DeployInstanceCommand to site {SiteId}, instance={Instance}, correlationId={DeploymentId}",
siteId, command.InstanceUniqueName, command.DeploymentId);
var envelope = new SiteEnvelope(siteId, command);
return await GetActor().Ask<DeploymentStatusResponse>(
envelope, _options.DeploymentTimeout, cancellationToken);
}
/// <summary>
/// Sends a small "refresh deployment" notify to a site (notify-and-fetch).
/// Replaces <see cref="DeployInstanceAsync"/> on the wire: the site fetches the
/// config over HTTP rather than receiving it inline. Reply is the existing
/// DeploymentStatusResponse, bounded by the deployment timeout.
/// Sends a small "refresh deployment" notify to a site (notify-and-fetch):
/// the site fetches the config over HTTP rather than receiving it inline.
/// Reply is the existing DeploymentStatusResponse, bounded by the deployment timeout.
/// </summary>
/// <param name="siteId">The target site identifier.</param>
/// <param name="command">The refresh-deployment notify.</param>