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

run-many order #6182

Closed
j opened this issue Jun 29, 2021 · 3 comments
Closed

run-many order #6182

j opened this issue Jun 29, 2021 · 3 comments

Comments

@j
Copy link

j commented Jun 29, 2021

Description

I'd like the ability to run a specific target match last.

Motivation

I have an API gateway that needs to run after all other services are running. Right now nx chooses the gateway first and it fails to launch due to how Apollo Federation works.

@FrozenPandaz
Copy link
Collaborator

The order of run-many is based on the dependencies between projects. If you need a project which needs to wait for all other projects, you can specify that the project implicitly depends on other projects using Implicit Dependencies.

If you want to start up the API Gateway and knowing it depends on starting its dependencies:
Having configured it with the above, you can set a Target Dependency that tells the API Gateway to also need the serve of its dependencies.

Alternatively, you can exclude the API Gateway from the run-many by passing --exclude api-gateway. Then, run nx serve api-gateway afterwards.

If these don't make sense, I recommend joining the Community Slack channel where someone can help you more synchronously than a Github Issue.
http://go.nrwl.io/join-slack

@j
Copy link
Author

j commented Jul 5, 2021 via email

@github-actions
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants