spectre.console icon indicating copy to clipboard operation
spectre.console copied to clipboard

Nested progress

Open sebastianstupak opened this issue 2 years ago • 0 comments

Hey,

I know this isn't supported by default.

I have use case where I am running parallel jobs, under each parallel job I am doing some preparation tasks, then doing some set tasks X amount of times. Currently, I am outputting following, but that doesn't give me any other information what's happening inside of these workers. Each can run for hours.

Worker 1 ----------------------------------------   0% --:--:--
Worker 2 ----------------------------------------   0% --:--:--

For example, I have preparation task that can conditionally happen:

Worker 1 ----------------------------------------   0% --:--:--
- Web scraping ----------------------------------------   0% --:--:--
Worker 2 ----------------------------------------   0% --:--:--

Then after scraping is done for Worker 1 it could change to:

Worker 1 ----------------------------------------   0% --:--:--
- Item 1 Creating video ----------------------------------------   0% --:--:--
- Item 2 Creating video ----------------------------------------   0% --:--:--
Worker 2 ----------------------------------------   0% --:--:--

If item 2 is finished then it continues to other task.

Worker 1 ----------------------------------------   0% --:--:--
- Item 1 Creating video ----------------------------------------   0% --:--:--
- Item 2 Uploading video ----------------------------------------   0% --:--:--
Worker 2 ----------------------------------------   0% --:--:--

The indentation could be done just by setting the name of task. Is there some workaround how I can achieve dynamically changing tasks like this?


Please upvote :+1: this issue if you are interested in it.

sebastianstupak avatar Jan 01 '24 02:01 sebastianstupak