File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ const logger = require('./common/logger')
7
7
const informix = require ( './common/informixWrapper.js' )
8
8
const healthcheck = require ( 'topcoder-healthcheck-dropin' ) ;
9
9
const kafkaOptions = config . get ( 'KAFKA' )
10
+ const sleep = require ( 'sleep' ) ;
10
11
const isSslEnabled = kafkaOptions . SSL && kafkaOptions . SSL . cert && kafkaOptions . SSL . key
11
12
const consumer = new Kafka . SimpleConsumer ( {
12
13
connectionString : kafkaOptions . brokers_url ,
@@ -41,6 +42,10 @@ const terminate = () => process.exit()
41
42
async function updateInformix ( payload ) {
42
43
logger . debug ( 'Starting to update informix with data:' )
43
44
logger . debug ( payload )
45
+ if ( payload . payload . table === 'scorecard_question' ) {
46
+ logger . debug ( 'inside scorecard_question' )
47
+ sleep . sleep ( 2 ) ;
48
+ }
44
49
//const operation = payload.operation.toLowerCase()
45
50
const operation = payload . payload . operation . toLowerCase ( )
46
51
console . log ( "level producer1 " , operation )
You can’t perform that action at this time.
0 commit comments