Skip to content

Commit

Permalink
fix: change mapServerCacheType to tilesStorageProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
almog8k committed Sep 19, 2024
1 parent 6691544 commit 5e9e3f9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion config/custom-environment-variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"__name": "DISABLE_HTTP_CLIENT_LOGS",
"__format": "boolean"
},
"mapServerCacheType": "MAP_SERVER_CACHE_TYPE",
"tilesStorageProvider": "TILES_STORAGE_PROVIDER",
"jobManagement": {
"config": {
"jobManagerBaseUrl": "JOB_MANAGER_BASE_URL",
Expand Down
2 changes: 1 addition & 1 deletion config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"shouldResetTimeout": true
},
"disableHttpClientLogs": true,
"mapServerCacheType": "FS",
"tilesStorageProvider": "FS",
"jobManagement": {
"config": {
"jobManagerBaseUrl": "http://localhost:8081",
Expand Down
6 changes: 3 additions & 3 deletions src/task/models/tileMergeTaskManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { fileExtensionExtractor } from '../../utils/fileutils';

@injectable()
export class TileMergeTaskManager {
private readonly mapServerCacheType: string;
private readonly tilesStorageProvider: string;
private readonly tileBatchSize: number;
private readonly taskBatchSize: number;
private readonly taskType: string;
Expand All @@ -34,7 +34,7 @@ export class TileMergeTaskManager {
@inject(SERVICES.TILE_RANGER) private readonly tileRanger: TileRanger,
@inject(SERVICES.QUEUE_CLIENT) private readonly queueClient: QueueClient
) {
this.mapServerCacheType = this.config.get<string>('mapServerCacheType');
this.tilesStorageProvider = this.config.get<string>('tilesStorageProvider');
this.tileBatchSize = this.config.get<number>('jobManagement.ingestion.tasks.tilesMerging.tileBatchSize');
this.taskBatchSize = this.config.get<number>('jobManagement.ingestion.tasks.tilesMerging.taskBatchSize');
this.taskType = this.config.get<string>('jobManagement.ingestion.tasks.tilesMerging.type');
Expand Down Expand Up @@ -208,7 +208,7 @@ export class TileMergeTaskManager {
const logger = this.logger.child({ partsLength: parts.length });
logger.debug({ msg: 'Creating source layers', parts });

const sourceEntry: IMergeSources = { type: this.mapServerCacheType, path: destPath };
const sourceEntry: IMergeSources = { type: this.tilesStorageProvider, path: destPath };
const sources = parts.map((part) => {
const fileExtension = fileExtensionExtractor(part.fileName);
return {
Expand Down
12 changes: 6 additions & 6 deletions tests/unit/mocks/configMock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ const registerDefaultConfig = (): void => {
options: null,
},
},
httpRetry: {
attempts: 5,
delay: 'exponential',
shouldResetTimeout: true,
},
disableHttpClientLogs: true,
},
httpRetry: {
attempts: 5,
delay: 'exponential',
shouldResetTimeout: true,
},
disableHttpClientLogs: true,
jobManagement: {
config: {
jobManagerBaseUrl: 'http://job-manager',
Expand Down

0 comments on commit 5e9e3f9

Please sign in to comment.