Skip to content

Commit 5b1b383

Browse files
committed
chore: disable worker for now in prod
1 parent ef2921a commit 5b1b383

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/workers/opportunity/parseCVProfile.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
import type { TypedWorker } from '../worker';
66
import { User } from '../../entity/user/User';
77
import { getBrokkrClient } from '../../common/brokkr';
8-
import { updateFlagsStatement } from '../../common/utils';
8+
import { isProd, updateFlagsStatement } from '../../common/utils';
99
import { importUserExperienceFromJSON } from '../../common/profile/import';
1010
import { logger } from '../../logger';
1111

@@ -14,6 +14,12 @@ export const parseCVProfileWorker: TypedWorker<'api.v1.candidate-preference-upda
1414
subscription: 'api.parse-cv-profile',
1515
parseMessage: ({ data }) => CandidatePreferenceUpdated.fromBinary(data),
1616
handler: async ({ data }, con) => {
17+
if (isProd) {
18+
// disabled for now so I can merge the code and will enable after backfill
19+
20+
return;
21+
}
22+
1723
const { userId, cv } = data.payload || {};
1824

1925
if (!cv?.blob || !cv?.bucket) {

0 commit comments

Comments
 (0)