Skip to content

Commit

Permalink
fix: scenes forward
Browse files Browse the repository at this point in the history
  • Loading branch information
aleortega committed Oct 11, 2024
1 parent 0e20c50 commit 315ebfb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/adapters/deployer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ export function createDeployerComponent(
contentServerUrls: servers
}

logger.info('Forwarding entity', {
entityId: entity.entityId,
entityType: entity.entityType,
normalSns: isSnsEntityToSend,
newSns: isSnsEventToSend
})

if (isSnsEntityToSend) {
await components.downloadQueue.onSizeLessThan(1000)

Expand Down Expand Up @@ -86,6 +93,13 @@ export function createDeployerComponent(
await markAsDeployed()
} catch (error: any) {
const isNotRetryable = /status: 4\d{2}/.test(error.message)
logger.error('Failed to publish entity', {
entityId: entity.entityId,
entityType: entity.entityType,
error: error?.message,
stack: error?.stack
})

if (isNotRetryable) {
logger.error('Failed to download entity', {
entityId: entity.entityId,
Expand Down

0 comments on commit 315ebfb

Please sign in to comment.