|
@ -101,17 +101,17 @@ export class AdminController { |
|
|
const uniqueAssets = await this.dataGatheringService.getUniqueAssets(); |
|
|
const uniqueAssets = await this.dataGatheringService.getUniqueAssets(); |
|
|
|
|
|
|
|
|
for (const { dataSource, symbol } of uniqueAssets) { |
|
|
for (const { dataSource, symbol } of uniqueAssets) { |
|
|
await this.dataGatheringService.addJobToQueue( |
|
|
await this.dataGatheringService.addJobToQueue({ |
|
|
GATHER_ASSET_PROFILE_PROCESS, |
|
|
data: { |
|
|
{ |
|
|
|
|
|
dataSource, |
|
|
dataSource, |
|
|
symbol |
|
|
symbol |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
name: GATHER_ASSET_PROFILE_PROCESS, |
|
|
|
|
|
opts: { |
|
|
...GATHER_ASSET_PROFILE_PROCESS_OPTIONS, |
|
|
...GATHER_ASSET_PROFILE_PROCESS_OPTIONS, |
|
|
jobId: `${dataSource}-${symbol}}` |
|
|
jobId: `${dataSource}-${symbol}}` |
|
|
} |
|
|
} |
|
|
); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.dataGatheringService.gatherMax(); |
|
|
this.dataGatheringService.gatherMax(); |
|
@ -135,17 +135,17 @@ export class AdminController { |
|
|
const uniqueAssets = await this.dataGatheringService.getUniqueAssets(); |
|
|
const uniqueAssets = await this.dataGatheringService.getUniqueAssets(); |
|
|
|
|
|
|
|
|
for (const { dataSource, symbol } of uniqueAssets) { |
|
|
for (const { dataSource, symbol } of uniqueAssets) { |
|
|
await this.dataGatheringService.addJobToQueue( |
|
|
await this.dataGatheringService.addJobToQueue({ |
|
|
GATHER_ASSET_PROFILE_PROCESS, |
|
|
data: { |
|
|
{ |
|
|
|
|
|
dataSource, |
|
|
dataSource, |
|
|
symbol |
|
|
symbol |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
name: GATHER_ASSET_PROFILE_PROCESS, |
|
|
|
|
|
opts: { |
|
|
...GATHER_ASSET_PROFILE_PROCESS_OPTIONS, |
|
|
...GATHER_ASSET_PROFILE_PROCESS_OPTIONS, |
|
|
jobId: `${dataSource}-${symbol}}` |
|
|
jobId: `${dataSource}-${symbol}}` |
|
|
} |
|
|
} |
|
|
); |
|
|
}); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -167,17 +167,17 @@ export class AdminController { |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
await this.dataGatheringService.addJobToQueue( |
|
|
await this.dataGatheringService.addJobToQueue({ |
|
|
GATHER_ASSET_PROFILE_PROCESS, |
|
|
data: { |
|
|
{ |
|
|
|
|
|
dataSource, |
|
|
dataSource, |
|
|
symbol |
|
|
symbol |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
name: GATHER_ASSET_PROFILE_PROCESS, |
|
|
|
|
|
opts: { |
|
|
...GATHER_ASSET_PROFILE_PROCESS_OPTIONS, |
|
|
...GATHER_ASSET_PROFILE_PROCESS_OPTIONS, |
|
|
jobId: `${dataSource}-${symbol}}` |
|
|
jobId: `${dataSource}-${symbol}}` |
|
|
} |
|
|
} |
|
|
); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Post('gather/:dataSource/:symbol') |
|
|
@Post('gather/:dataSource/:symbol') |
|
|