Closed Zethson closed 3 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Isn't it related to: https://github.com/nextflow-io/nextflow/discussions/3421 ?
New feature
Nextflow should allow processes to print anything that the process prints to stdout to current stdout. in real time. Currently,
echo true
only prints anything that was printed to stdout by the process after the process was completed.Usage scenario
There are several, vital scenarios where this would come in handy.
Suggest implementation
I expect that stdout would get very crowded if processes, which run multiple times and in parallel all print their status messages. Hence, it would possibly make sense if processes, which normally never split and do not run in parallel in Nextflow (such as machine learning on whole datasets - the ML frameworks take care of distributing the badges to the GPUs) would be allowed to do that. Maybe a new label would need to be introduced for this e.g.
echo-real-time
. Alternatively, maybe only up to 5 or whatever parallel processes would be allowed to print their status message or something like that with a user defined number. e.g. a process gets the labelecho-real-time 5
and the first five in parallel launched processes would then get their own line in stdout and echo their stdout in real time.This is the primary reason why we currently cannot use Nextflow for machine learning, which is a shame, since Nextflow is awesome for all too many reasons and the machine learning community is huge.