File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -50,9 +50,9 @@ builddeploy_steps: &builddeploy_steps
5050 # # consumer deployment
5151 # rm -rf buildenvvar
5252 # ./unsetenv.sh
53- # ./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-${APPNAME}-consumer-deployvar
54- # source buildenvvar
55- # ./master_deploy.sh -d ECS -e $DEPLOY_ENV -t latest -s ${LOGICAL_ENV}-global-appvar,${LOGICAL_ENV}-${APPNAME}-appvar -i ${APPNAME}
53+ ./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-${APPNAME}-consumer-deployvar
54+ source buildenvvar
55+ ./master_deploy.sh -d ECS -e $DEPLOY_ENV -t latest -s ${LOGICAL_ENV}-global-appvar,${LOGICAL_ENV}-${APPNAME}-appvar -i ${APPNAME}
5656 # # without kafka dynamodb
5757 # rm -rf buildenvvar
5858 # ./unsetenv.sh
@@ -62,9 +62,9 @@ builddeploy_steps: &builddeploy_steps
6262 # # reconciler deployment
6363 # rm -rf buildenvvar
6464 # ./unsetenv.sh
65- ./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-${APPNAME}-reconciler-deployvar
66- source buildenvvar
67- ./master_deploy.sh -d ECS -e $DEPLOY_ENV -t latest -s ${LOGICAL_ENV}-global-appvar,${LOGICAL_ENV}-${APPNAME}-appvar -i ${APPNAME}
65+ # ./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-${APPNAME}-reconciler-deployvar
66+ # source buildenvvar
67+ # ./master_deploy.sh -d ECS -e $DEPLOY_ENV -t latest -s ${LOGICAL_ENV}-global-appvar,${LOGICAL_ENV}-${APPNAME}-appvar -i ${APPNAME}
6868
6969
7070jobs :
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ module.exports = {
1010 } ,
1111 RETRY_COUNTER : parseInt ( process . env . RETRY_COUNTER || 3 , 10 ) ,
1212 KAFKA_REPOST_COUNT : parseInt ( process . env . KAFKA_REPOST_COUNT || 5 , 10 ) ,
13+ KAFKA_REPOST_DELAY : parseInt ( process . env . KAFKA_REPOST_DELAY || 2000 , 10 ) ,
1314 KAFKA_URL : process . env . KAFKA_URL ,
1415 KAFKA_GROUP_ID : process . env . KAFKA_GROUP_ID || 'ifx-pg-consumer' ,
1516 KAFKA_CLIENT_CERT : process . env . KAFKA_CLIENT_CERT ? process . env . KAFKA_CLIENT_CERT . replace ( '\\n' , '\n' ) : null ,
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ async function consumerretry(producer, payload) {
1111 } catch ( error ) {
1212 logger . logFullError ( error )
1313 }
14+ await sleep ( config . KAFKA_REPOST_DELAY )
1415 kafka_error = await pushToKafka ( producer , config . topic . NAME , payload )
1516 //add auditlog
1617 if ( ! kafka_error ) {
@@ -38,5 +39,7 @@ async function consumerretry(producer, payload) {
3839
3940 }
4041}
41-
42+ async function sleep ( ms ) {
43+ return new Promise ( resolve => setTimeout ( resolve , ms ) ) ;
44+ }
4245module . exports = consumerretry
You can’t perform that action at this time.
0 commit comments