feat(server): resume queues (#2104)

* feat(server): resume queues

* chore: regenerate open-api
This commit is contained in:
Jason Rasmussen
2023-03-28 14:25:22 -04:00
committed by GitHub
parent 8563bd463c
commit 9adbbd42be
9 changed files with 21 additions and 0 deletions

View File

@@ -93,6 +93,12 @@ describe(JobService.name, () => {
expect(jobMock.pause).toHaveBeenCalledWith(QueueName.METADATA_EXTRACTION);
});
it('should handle a resume command', async () => {
await sut.handleCommand(QueueName.METADATA_EXTRACTION, { command: JobCommand.RESUME, force: false });
expect(jobMock.resume).toHaveBeenCalledWith(QueueName.METADATA_EXTRACTION);
});
it('should handle an empty command', async () => {
await sut.handleCommand(QueueName.METADATA_EXTRACTION, { command: JobCommand.EMPTY, force: false });