You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* AllRuns takes precedence over any specified number of runs
* Return unmatched identifiers while filtering sub jobs instead of returning an error
* Get the complete run details while downloading outputs if a simplified run object that doesn't contain the workflow version ID was used initially
* Do not error out on the first failed run and print extra details in the download status messages
* Return the destination path while downloading outputs and pass the individual download error details to the caller
returnfmt.Errorf("no running nodes matching your query %q were found in the run %s", strings.Join(cfg.Nodes, ","), run.ID.String())
130
+
}
131
+
iflen(unmatchedNodes) >0 {
132
+
fmt.Fprintf(os.Stderr, "Warning: The following nodes were not found in run %s: %s. Proceeding with the remaining nodes\n", run.ID.String(), strings.Join(unmatchedNodes, ","))
fmt.Fprintf(os.Stderr, "Warning: Failed to download file %q for node %q: %v\n", result.FileName, result.SubJobName, result.Error)
32
+
fmt.Fprintf(os.Stderr, "Warning: Failed to download file %q for node %q in run %s: %v\n", result.FileName, result.SubJobName, runID.String(), result.Error)
32
33
} else {
33
-
fmt.Fprintf(os.Stderr, "Warning: Failed to download output for node %q: %v\n", result.SubJobName, result.Error)
34
+
fmt.Fprintf(os.Stderr, "Warning: Failed to download output for node %q in run %s: %v\n", result.SubJobName, runID.String(), result.Error)
34
35
}
35
36
}
36
37
}
37
38
38
39
iffailureCount>0 {
39
-
fmt.Fprintf(os.Stderr, "Download completed with %d successful and %d failed downloads\n", successCount, failureCount)
40
+
fmt.Fprintf(os.Stderr, "Download completed with %d successful and %d failed downloads for run %s into %q\n", successCount, failureCount, runID.String(), destinationPath+"/")
40
41
} elseifsuccessCount>0 {
41
-
fmt.Printf("Successfully downloaded outputs for %d sub-jobs\n", successCount)
42
+
fmt.Printf("Successfully downloaded %d outputs from run %s into %q\n", successCount, runID.String(), destinationPath+"/")
returnnil, "", fmt.Errorf("no completed node outputs matching your query %q were found in the run %s", strings.Join(nodes, ","), run.ID.String())
76
+
}
77
+
iflen(unmatchedNodes) >0 {
78
+
fmt.Fprintf(os.Stderr, "Warning: The following nodes were not found in run %s: %s. Proceeding with the remaining nodes\n", run.ID.String(), strings.Join(unmatchedNodes, ","))
0 commit comments