diff --git a/index.js b/index.js index 4672d7b6..81f95d14 100644 --- a/index.js +++ b/index.js @@ -143,6 +143,9 @@ async function runQueuePublish(options = {}) { ), { priority: _messagePriority(reportConfig), + retryLimit: 2, + retryDelay: 10, + retryBackoff: true, singletonKey: `${appConfig.scriptName}-${agency.agencyName}-${reportConfig.name}`, }, ); diff --git a/manifest.consumer.yml b/manifest.consumer.yml index e64bd1b1..16ad4b8b 100644 --- a/manifest.consumer.yml +++ b/manifest.consumer.yml @@ -4,7 +4,7 @@ applications: # 1GB is needed right at startup because many child processes are spawned in # parallel. This could be reduced if we limited the number of simultaneous # processes. - memory: 384M + memory: 416M disk_quota: 512M health-check-type: process buildpacks: @@ -26,7 +26,7 @@ applications: NEW_RELIC_APP_NAME: ${NEW_RELIC_APP_NAME} NEW_RELIC_LICENSE_KEY: ${NEW_RELIC_LICENSE_KEY} NODE_ENV: production - NODE_OPTIONS: --max-old-space-size=192 + NODE_OPTIONS: --max-old-space-size=312 PGSSLMODE: true PROXY_USERNAME: ${PROXY_USERNAME} PROXY_PASSWORD: ${PROXY_PASSWORD} diff --git a/manifest.publisher.yml b/manifest.publisher.yml index 871d25ed..12a2ed8d 100644 --- a/manifest.publisher.yml +++ b/manifest.publisher.yml @@ -4,7 +4,7 @@ applications: # 1GB is needed right at startup because many child processes are spawned in # parallel. This could be reduced if we limited the number of simultaneous # processes. - memory: 256M + memory: 192M disk_quota: 512M health-check-type: process buildpacks: