Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add getAllWorkers method #1956

Merged
merged 2 commits into from
Nov 5, 2024
Merged

feat: add getAllWorkers method #1956

merged 2 commits into from
Nov 5, 2024

Conversation

anchan828
Copy link
Owner

#1951

async function bootstrap(): Promise<void> {
  const app = await NestFactory.create(WorkerAppModule);
  const service = app.get(QueueWorkerService);
  const allWorkers = service.getAllWorkers();
  const allProcessors = allWorkers.flatMap(w => w.processors);
 
  // Do somethings...
}

@anchan828 anchan828 changed the title feat: getAllWorkers method feat: add getAllWorkers method Nov 5, 2024
@anchan828 anchan828 marked this pull request as ready for review November 5, 2024 01:50
@anchan828 anchan828 merged commit 851b3d3 into master Nov 5, 2024
3 checks passed
@anchan828 anchan828 deleted the public-getAllWorkers branch November 5, 2024 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant