Skip to content

Commit

Permalink
use the internal db pool for pipeline loads
Browse files Browse the repository at this point in the history
  • Loading branch information
ichub committed Nov 12, 2024
1 parent 6c1a770 commit 05e4f91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class PipelineExecutorSubservice {
* schedules a load loop which loads data for each {@link Pipeline} once per minute.
*/
public async start(startLoadLoop?: boolean): Promise<void> {
await sqlTransaction(this.context.dbPool, (client) =>
await sqlTransaction(this.context.internalPool, (client) =>
this.loadAndInstantiatePipelines(client)
);

Expand Down Expand Up @@ -357,7 +357,7 @@ export class PipelineExecutorSubservice {
}

let runInfo = await performPipelineLoad(
this.context.dbPool,
this.context.internalPool,
pipelineSlot,
this.pipelineSubservice,
this.userSubservice,
Expand Down Expand Up @@ -502,7 +502,7 @@ export class PipelineExecutorSubservice {
// function - that will be done the next time `startPipelineLoadLoop`
// is called.
await namedSqlTransaction(
this.context.dbPool,
this.context.internalPool,
"startPipelineLoadLoop",
async (client) => {
await this.loadAndInstantiatePipelines(client);
Expand Down
2 changes: 1 addition & 1 deletion apps/passport-server/src/services/semaphoreService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class SemaphoreService {
public groupDevconnectOrganizers = (): NamedGroup => this.getNamedGroup("7");

public constructor(config: ApplicationContext) {
this.dbPool = config.dbPool;
this.dbPool = config.internalPool;
this.groups = SemaphoreService.createGroups();
}

Expand Down

0 comments on commit 05e4f91

Please sign in to comment.