Skip to content

Commit

Permalink
feat: reduced stalledInterval value
Browse files Browse the repository at this point in the history
  • Loading branch information
mckrava committed Nov 22, 2023
1 parent b417a43 commit 2bac075
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deployment/feature-based/all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ data:
AGGREGATOR_REDIS_PREFIX: 'aggregator_queue_<BRANCH>'
AGGREGATOR_REDIS_PORT: '6379'
AGGREGATOR_REDIS_ENABLE_SSL: 'false'
AGGREGATOR_HISTORY_RENEW_INTERVAL_MS: '10000'
AGGREGATOR_HISTORY_RENEW_INTERVAL_MS: '60000'
AGGREGATOR_GS_MAIN_CHUNK_BLOCKS_SIZE: '1000000'
DATA_SOURCE_GSQUID_MAIN_POLKADOT: 'https://squid.subsquid.io/gs-main-polkadot/graphql'
DATA_SOURCE_GSQUID_MAIN_KUSAMA: 'https://squid.subsquid.io/gs-main-kusama/graphql'
Expand Down
2 changes: 1 addition & 1 deletion src/modules/queueProcessor/queueProcessor.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import { DatasourceChunkParallelHandlingConsumer } from './services/consumers/da
name: SubIdAggregatorQueueName.DATASOURCE_CHUNKS_PARALLEL_HANDLING,
processors: [
{
concurrency: 100,
concurrency: 101,
name: 'TRANSFER_CHUNK',
path: join(
__dirname,
Expand Down
2 changes: 1 addition & 1 deletion src/modulesConfig/bullModule.forRoot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default {
settings: {
lockDuration: 20000, // Check for stalled jobs each 2 min
lockRenewTime: 10000,
stalledInterval: 20 * 60 * 1000,
stalledInterval: 10 * 60 * 1000,
maxStalledCount: 1,
},
};
Expand Down

0 comments on commit 2bac075

Please sign in to comment.