Skip to content

Commit

Permalink
Merge branch 'next' into v0.22.x
Browse files Browse the repository at this point in the history
  • Loading branch information
LetItRock committed Dec 8, 2023
2 parents 7426a8a + 87c60f3 commit 1d69665
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 19 deletions.
20 changes: 10 additions & 10 deletions apps/worker/src/app/workflow/services/execution-log.worker.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('ExecutionLog Worker', () => {
expect(await executionLogWorker.bullMqService.getStatus()).to.deep.equal({
queueIsPaused: undefined,
queueName: undefined,
workerName: 'execution-log',
workerName: 'execution-logs',
workerIsPaused: false,
workerIsRunning: true,
});
Expand All @@ -60,13 +60,13 @@ describe('ExecutionLog Worker', () => {
const existingJobs = await executionLogQueueService.queue.getJobs();
expect(existingJobs.length).to.equal(0);

const jobId = 'execution-log-queue-job-id';
const _environmentId = 'execution-log-queue-environment-id';
const _organizationId = 'execution-log-queue-organization-id';
const _userId = 'execution-log-queue-user-id';
const jobId = 'execution-logs-queue-job-id';
const _environmentId = 'execution-logs-queue-environment-id';
const _organizationId = 'execution-logs-queue-organization-id';
const _userId = 'execution-logs-queue-user-id';
const jobData = {
_id: jobId,
test: 'execution-log-queue-job-data',
test: 'execution-logs-queue-job-data',
_environmentId,
_organizationId,
_userId,
Expand Down Expand Up @@ -96,7 +96,7 @@ describe('ExecutionLog Worker', () => {
expect(runningStatus).to.deep.equal({
queueIsPaused: undefined,
queueName: undefined,
workerName: 'execution-log',
workerName: 'execution-logs',
workerIsPaused: false,
workerIsRunning: true,
});
Expand All @@ -110,7 +110,7 @@ describe('ExecutionLog Worker', () => {
expect(runningStatusChanged).to.deep.equal({
queueIsPaused: undefined,
queueName: undefined,
workerName: 'execution-log',
workerName: 'execution-logs',
workerIsPaused: true,
workerIsRunning: true,
});
Expand All @@ -126,7 +126,7 @@ describe('ExecutionLog Worker', () => {
expect(runningStatus).to.deep.equal({
queueIsPaused: undefined,
queueName: undefined,
workerName: 'execution-log',
workerName: 'execution-logs',
workerIsPaused: true,
workerIsRunning: true,
});
Expand All @@ -140,7 +140,7 @@ describe('ExecutionLog Worker', () => {
expect(runningStatusChanged).to.deep.equal({
queueIsPaused: undefined,
queueName: undefined,
workerName: 'execution-log',
workerName: 'execution-logs',
workerIsPaused: false,
workerIsRunning: true,
});
Expand Down
6 changes: 1 addition & 5 deletions libs/shared/src/config/job-queue.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export enum JobTopicNameEnum {
EXECUTION_LOG = 'execution-log',
EXECUTION_LOG = 'execution-logs',
ACTIVE_JOBS_METRIC = 'metric-active-jobs',
INBOUND_PARSE_MAIL = 'inbound-parse-mail',
STANDARD = 'standard',
Expand All @@ -8,10 +8,6 @@ export enum JobTopicNameEnum {
PROCESS_SUBSCRIBER = 'process-subscriber',
}

/*
* Name need to be in sync with the enum above as
* the name should be `EnumString-queue` for any queue name enums
*/
export enum ObservabilityBackgroundTransactionEnum {
JOB_PROCESSING_QUEUE = 'job-processing-queue',
SUBSCRIBER_PROCESSING_QUEUE = 'subscriber-processing-queue',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ describe('Execution Log Queue service', () => {
])
);
expect(executionLogQueueService.DEFAULT_ATTEMPTS).toEqual(3);
expect(executionLogQueueService.topic).toEqual('execution-log');
expect(executionLogQueueService.topic).toEqual('execution-logs');
expect(await executionLogQueueService.bullMqService.getStatus()).toEqual({
queueIsPaused: false,
queueName: 'execution-log',
queueName: 'execution-logs',
workerName: undefined,
workerIsPaused: undefined,
workerIsRunning: undefined,
Expand All @@ -52,7 +52,7 @@ describe('Execution Log Queue service', () => {
_events: {},
_eventsCount: 0,
_maxListeners: undefined,
name: 'execution-log',
name: 'execution-logs',
jobsOpts: {
removeOnComplete: true,
},
Expand All @@ -79,7 +79,7 @@ describe('Execution Log Queue service', () => {

it('should have prefix in cluster mode', async () => {
expect(executionLogQueueService.queue.opts.prefix).toEqual(
'{execution-log}'
'{execution-logs}'
);
});
});
Expand Down

0 comments on commit 1d69665

Please sign in to comment.