Skip to content

Commit 7fa45ad

Browse files
authored
Fix pre-pulling of deployment images onto worker nodes (#1660)
* lint * get pre-pull data from finalized deployment
1 parent 42c5f4d commit 7fa45ad

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

apps/webapp/app/v3/services/finalizeDeployment.server.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class FinalizeDeploymentService extends BaseService {
6262
data: {
6363
status: "DEPLOYED",
6464
deployedAt: new Date(),
65-
imageReference: imageReference,
65+
imageReference,
6666
},
6767
});
6868

@@ -103,17 +103,17 @@ export class FinalizeDeploymentService extends BaseService {
103103
logger.error("Failed to publish WORKER_CREATED event", { err });
104104
}
105105

106-
if (deployment.imageReference) {
106+
if (finalizedDeployment.imageReference) {
107107
socketIo.providerNamespace.emit("PRE_PULL_DEPLOYMENT", {
108108
version: "v1",
109-
imageRef: deployment.imageReference,
110-
shortCode: deployment.shortCode,
109+
imageRef: finalizedDeployment.imageReference,
110+
shortCode: finalizedDeployment.shortCode,
111111
// identifiers
112-
deploymentId: deployment.id,
112+
deploymentId: finalizedDeployment.id,
113113
envId: authenticatedEnv.id,
114114
envType: authenticatedEnv.type,
115115
orgId: authenticatedEnv.organizationId,
116-
projectId: deployment.projectId,
116+
projectId: finalizedDeployment.projectId,
117117
});
118118
}
119119

0 commit comments

Comments
 (0)