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

Fix using concurrency and arg together in start #112

Closed
wants to merge 2 commits into from

Conversation

dterei
Copy link

@dterei dterei commented Apr 17, 2018

If you ran "forego start" with both arguments and a concurrency flag it would often hang:

    forego start -c hello=2 world

Secondly, in concurrency mode we didn't check if the process requested actually existed, which could also cause forego to hang. We fix this two bugs by unifying the argument and concurrency flag code paths. In the process, we also extend argument mode to accept multiple processes to launch, so we can now type:

    forego start hello world

Giving us a slightly nicer interface. If you use both arguments and concurrency flags as in the first example, this will work and even allow you to specify the same process to launch in both lists, with the concurrency value coming from the concurrency list.

If you ran "forego start" with both arguments and a concurrency flag it
would often hang:

    forego start -c hello=2 world

Secondly, in concurrency mode we didn't check if the process requested
actually existed, which could also cause forego to hang. We fix this two
bugs by unifying the argument and concurrency flag code paths. In the
process, we also extend argument mode to accept multiple processes to
launch, so we can now type:

    forego start hello world

Giving us a slightly nicer interface. If you use both arguments and
concurrency flags as in the first example, this will work and even allow
you to specify the same process to launch in both lists, with the
concurrency value coming from the concurrency list.
@dterei
Copy link
Author

dterei commented May 8, 2018

@ddollar ping?

@yb66 yb66 mentioned this pull request Sep 21, 2019
@dterei dterei closed this Oct 30, 2019
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