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

When using --timings with --group, timings are printed in the middle of the output #316

Closed
mcous opened this issue Apr 24, 2022 · 0 comments · Fixed by #431
Closed

When using --timings with --group, timings are printed in the middle of the output #316

mcous opened this issue Apr 24, 2022 · 0 comments · Fixed by #431

Comments

@mcous
Copy link

mcous commented Apr 24, 2022

I encountered a little unexpected behavior while using concurrently today, and wanted to file an issue in case it seemed like something worth tackling!

If you use the --timings along with the --group option, the timings table is printed when the last command exits rather than at the end of the output. This can lead to the timings table getting printed in the middle of the stream rather than the end:

❯ ./node_modules/.bin/concurrently --group --timings "sleep 1 && exit" "exit"
[0] sleep 1 && exit started at 2022-04-24 19:28:03.242
[0] sleep 1 && exit stopped at 2022-04-24 19:28:04.252 after 1,010ms
[0] sleep 1 && exit exited with code 0
--> Timings:
--> ┌──────┬──────────┬───────────┬────────┬─────────────────┐
--> │ name │ duration │ exit code │ killed │ command         │
--> ├──────┼──────────┼───────────┼────────┼─────────────────┤
--> │      │ 1,010    │ 0         │ false  │ sleep 1 && exit │
--> │      │ 5        │ 0         │ falseexit            │
--> └──────┴──────────┴───────────┴────────┴─────────────────┘
[1] exit started at 2022-04-24 19:28:03.249
[1] exit stopped at 2022-04-24 19:28:03.254 after 5ms
[1] exit exited with code 0
kayahr added a commit to kayahr/concurrently that referenced this issue Jun 24, 2023
This fixes the problem that summary timings are printed before grouped output (Fixes open-cli-tools#316).
paescuj pushed a commit that referenced this issue Jun 24, 2023
This fixes the problem that summary timings are printed before grouped output (Fixes #316).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants