cli-progress icon indicating copy to clipboard operation
cli-progress copied to clipboard

Multiple progresses on each Child progress (at the moment it overlaps and flashes on updates)

Open mihailnicamn opened this issue 2 years ago • 3 comments

If i use 2 js files each using progress bars, and an main js file that launches both using child process (note that the only way i got the child process to return the cli-progress output is using { shell: true, stdio: 'inherit' } option ) it overlaps the output and shows the last one updated

mihailnicamn avatar Dec 29 '22 20:12 mihailnicamn

this cannot work due to concurrency issues:

use one process (master or a dedicated child) to run cli-progress (multi bar in your case) and pass the data from the workers via IPC channels to this process to display the progress

AndiDittrich avatar Dec 30 '22 11:12 AndiDittrich

this cannot work due to concurrency issues:

use one process (master or a dedicated child) to run cli-progress (multi bar in your case) and pass the data from the workers via IPC channels to this process to display the progress

could you be more specific?

cfmj avatar Feb 06 '23 09:02 cfmj

see https://nodejs.org/api/child_process.html#subprocesssendmessage-sendhandle-options-callback

AndiDittrich avatar Feb 19 '23 11:02 AndiDittrich