diff --git a/packages/backend/src/queues/__tests__/action.itest.ts b/packages/backend/src/queues/__tests__/action.itest.ts index cca4f6971..dc563ece4 100644 --- a/packages/backend/src/queues/__tests__/action.itest.ts +++ b/packages/backend/src/queues/__tests__/action.itest.ts @@ -1,5 +1,7 @@ import { describe, expect, it } from 'vitest' +import apps from '@/apps' + import { actionQueuesByName } from '../action' describe('Action Queues', () => { @@ -9,4 +11,17 @@ describe('Action Queues', () => { expect(queueName).not.toContain(':') } }) + + it('check that delayable queues have queue rate limits defined', () => { + for (const app of Object.values(apps)) { + if (!app.queue) { + continue + } + + if (app.queue.isQueueDelayable) { + expect(app.queue.queueRateLimit).not.toBeNull() + expect(app.queue.queueRateLimit).not.toBeUndefined() + } + } + }) })