Skip to content

Commit

Permalink
perf(core): Skip unneeded calls on every pruning cycle (#7260)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov committed Sep 26, 2023
1 parent 0824800 commit db01164
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,11 @@ export class ExecutionRepository extends Repository<ExecutionEntity> {
})
).map(({ id }) => id);

if (executionIds.length === 0) {
this.logger.debug('Found no executions to hard-delete from database');
return;
}

await this.binaryDataService.deleteManyByExecutionIds(executionIds);

this.logger.debug(`Hard-deleting ${executionIds.length} executions from database`, {
Expand Down

0 comments on commit db01164

Please sign in to comment.