RUNNING, SUBMITTED status not found in trace file #4865
-
DescriptionI'm trying to use trace to track a pipeline run. I found that the pipeline running status NEW, SUBMIT, and RUNNING are not recorded in the trace file. However, it is stated in the nextflow documentation that these states can be recorded. Command Linenextflow -log ./log/test.log run main.nf configtrace {
enabled = true
overwrite = true
raw = true
file = "./track/trace.txt"
fields = 'task_id,name,status,exit,realtime,%cpu,rss'
} trace
log |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi @typekey , the trace file is meant to be viewed after a run, so you would never see tasks in the trace file with a status like RUNNING or SUBMITTED. If you want to monitor the task status while the pipeline is running, you can use something like Seqera Platform. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply. If I simply want to monitor the status of a running task without needing the web panel, what should I do? Could you provide some guidance? |
Beta Was this translation helpful? Give feedback.
-
The stdout of the nextflow run is the only other way that I can think of. If you run with If you want to monitor the status of individual tasks through the terminal, you could build a tool that consumes the nextflow log and produces a task table with individual task statuses. The log will contain all of the necessary information for it but you'll need to preprocess the logs to produce a more readable task table |
Beta Was this translation helpful? Give feedback.
The stdout of the nextflow run is the only other way that I can think of. If you run with
-ansi-log false
then it will log each task submission separately rather than showing the process list with percentages, but it doesn't log when a task completed so it's not a perfect solution. This recent blog post shows an upcoming feature in the nf-core CLI which displays the log in a more user-friendly way.If you want to monitor the status of individual tasks through the terminal, you could build a tool that consumes the nextflow log and produces a task table with individual task statuses. The log will contain all of the necessary information for it but you'll need to preprocess the logs to produ…