Skip to content

Commit

Permalink
HARMONY-1508: Removed some commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
indiejames committed Jul 19, 2023
1 parent 032b1c8 commit 1ea1948
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
13 changes: 0 additions & 13 deletions app/backends/workflow-orchestration/work-item-polling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,3 @@ export async function getWorkFromQueue(serviceID: string, reqLogger: Logger): Pr
return null;
}

// Listen for work items being created and put a message on the scheduler queue asking it to
// schedule some WorkItems for the service
// eventEmitter.on(WorkItemEvent.CREATED, async (workItem: WorkItem) => {
// if (env.useServiceQueues) {
// const defaultLogger = logger.child({ application: 'work-scheduler' });
// const { serviceID } = workItem;
// defaultLogger.debug(`Work item created for service ${serviceID}, putting message on scheduler queue`);
// const queue = getWorkSchedulerQueue();
// await queue.sendMessage(serviceID);
// // this actually does nothing outside of tests since the scheduler pod will be running
// await processSchedulerQueue(defaultLogger);
// }
// });
2 changes: 0 additions & 2 deletions kubernetes-services/work-updater/app/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ eventEmitter.on(WorkItemEvent.CREATED, async (workItem: WorkItem) => {
defaultLogger.debug(`Work item created for service ${serviceID}, putting message on scheduler queue`);
const queue = getWorkSchedulerQueue();
await queue.sendMessage(serviceID);
// this actually does nothing outside of tests since the scheduler pod will be running
// await processSchedulerQueue(defaultLogger);
}
});

Expand Down

0 comments on commit 1ea1948

Please sign in to comment.