File tree Expand file tree Collapse file tree 7 files changed +9
-7
lines changed
integration_data_worker/src/bin
integration_run_worker/src/bin
integration_stream_worker/src/bin Expand file tree Collapse file tree 7 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ setImmediate(async () => {
2121 const emitter = new IntegrationDataWorkerEmitter ( sqsClient , log )
2222 await emitter . init ( )
2323
24- const dbConnection = await getDbConnection ( DB_CONFIG ( ) , 1 )
24+ const dbConnection = await getDbConnection ( DB_CONFIG ( ) )
2525 const store = new DbStore ( log , dbConnection )
2626 const repo = new IntegrationDataRepository ( store , log )
2727
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ setImmediate(async () => {
2121 const emitter = new IntegrationDataWorkerEmitter ( sqsClient , log )
2222 await emitter . init ( )
2323
24- const dbConnection = await getDbConnection ( DB_CONFIG ( ) , 1 )
24+ const dbConnection = await getDbConnection ( DB_CONFIG ( ) )
2525 const store = new DbStore ( log , dbConnection )
2626 const repo = new IntegrationDataRepository ( store , log )
2727
Original file line number Diff line number Diff line change @@ -16,14 +16,16 @@ setImmediate(async () => {
1616 const emitter = new IntegrationRunWorkerEmitter ( sqsClient , log )
1717 await emitter . init ( )
1818
19- const dbConnection = await getDbConnection ( DB_CONFIG ( ) , 1 )
19+ const dbConnection = await getDbConnection ( DB_CONFIG ( ) )
2020 const store = new DbStore ( log , dbConnection )
2121
2222 const repo = new IntegrationRunRepository ( store , log )
2323
2424 const run = await repo . findIntegrationRunById ( runId )
2525
2626 if ( run ) {
27+ log . info ( { run } , 'Found run!' )
28+
2729 if ( run . state != IntegrationRunState . PENDING ) {
2830 log . warn ( `Integration run is not pending, setting to pending!` )
2931
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ setImmediate(async () => {
1616 const emitter = new IntegrationRunWorkerEmitter ( sqsClient , log )
1717 await emitter . init ( )
1818
19- const dbConnection = await getDbConnection ( DB_CONFIG ( ) , 1 )
19+ const dbConnection = await getDbConnection ( DB_CONFIG ( ) )
2020 const store = new DbStore ( log , dbConnection )
2121
2222 const repo = new IntegrationRunRepository ( store , log )
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ setImmediate(async () => {
6868 const emitter = new IntegrationRunWorkerEmitter ( sqsClient , log )
6969 await emitter . init ( )
7070
71- const dbConnection = await getDbConnection ( DB_CONFIG ( ) , 1 )
71+ const dbConnection = await getDbConnection ( DB_CONFIG ( ) )
7272 const store = new DbStore ( log , dbConnection )
7373
7474 const repo = new IntegrationRunRepository ( store , log )
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ setImmediate(async () => {
1313 const emitter = new IntegrationRunWorkerEmitter ( sqsClient , log )
1414 await emitter . init ( )
1515
16- const dbConnection = await getDbConnection ( DB_CONFIG ( ) , 1 )
16+ const dbConnection = await getDbConnection ( DB_CONFIG ( ) )
1717 const store = new DbStore ( log , dbConnection )
1818
1919 const repo = new IntegrationRunRepository ( store , log )
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ setImmediate(async () => {
2121 const emitter = new IntegrationStreamWorkerEmitter ( sqsClient , log )
2222 await emitter . init ( )
2323
24- const dbConnection = await getDbConnection ( DB_CONFIG ( ) , 1 )
24+ const dbConnection = await getDbConnection ( DB_CONFIG ( ) )
2525 const store = new DbStore ( log , dbConnection )
2626 const repo = new IntegrationStreamRepository ( store , log )
2727
You can’t perform that action at this time.
0 commit comments