Skip to content

Commit

Permalink
fix: added errors handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mckrava committed Mar 13, 2024
1 parent cf251e3 commit 8701508
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type OneTimeJob = { id: string; action: string } & {

const oneTimeJobsList: OneTimeJob[] = [
{
id: '1710336390624',
id: '1710336390625',
action: 'removeAllActiveJobs',
payload: {},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ export class AccountAggregationFlowProducer {
const allJobs = await this.accountAggregationFlowQueue.getJobs(['active']);

for (const job of allJobs) {
await job.remove();
try {
await job.remove();
} catch (e) {
console.log(e);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ export class DatasourceChunksParallelHandlingProducer {
]);

for (const job of allJobs) {
await job.remove();
try {
await job.remove();
} catch (e) {
console.log(e);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ export class DatasourceHandlingProducer {
const allJobs = await this.datasourceHandlingQueue.getJobs(['active']);

for (const job of allJobs) {
await job.remove();
try {
await job.remove();
} catch (e) {
console.log(e);
}
}
}

Expand Down

0 comments on commit 8701508

Please sign in to comment.