Skip to content

Commit

Permalink
fix: resume queue in content-publishing when Capacity is available (#393
Browse files Browse the repository at this point in the history
)

# Description
Resume queue when Capacity is available (was logging event, but not
resuming queue)

# Acceptance Criteria
- [x] Publishing queue is resumed when Capacity becomes available

Closes #392
  • Loading branch information
JoeCap08055 committed Aug 16, 2024
1 parent 747ac53 commit 83bd623
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export class PublishingService extends BaseConsumer implements OnApplicationBoot
if (await this.publishQueue.isPaused()) {
this.logger.debug('Received capacity.available event');
}
await this.publishQueue.resume();
try {
this.schedulerRegistry.deleteTimeout(CAPACITY_EPOCH_TIMEOUT_NAME);
} catch (err) {
Expand Down

0 comments on commit 83bd623

Please sign in to comment.