rbbt-util 5.30.11 → 5.30.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/share/rbbt_commands/slurm/list +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d407fc5c2e576419062f2f72e52a4c67d8c740447b54eb7838ecaf769ee1c33
|
4
|
+
data.tar.gz: a9f11e1db995f7ea7179964316b6c7347e01fcd7323b6237e8762320455ca8ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46718e67f59ab2b9ae5e3fd1d6fb0e7deffe5b1f5daf95669d7cc11022c846e829640cee45033aaced7409c291eacc29bd04253ff5f978e98e4860d777046188
|
7
|
+
data.tar.gz: b214c317054c28c81d742a0eb5af3c3a1bddcc3fb48223ba7d2ea7f3ab95e155e642d4100d5353bc04cbfc77bfcdd215df57c37be0a3fc0de0fb6757e5c3a269
|
@@ -229,13 +229,13 @@ workdir.glob("**/command.slurm").sort_by{|f| File.mtime(f)}.each do |fcmd|
|
|
229
229
|
if tail && File.exists?(File.join(dir, 'std.err'))
|
230
230
|
if exit_status && exit_status != 0
|
231
231
|
puts Log.color(:magenta, "First error or exception found: ")
|
232
|
-
puts CMD.cmd("grep -i -w 'error\\|[a-z]*exception' #{File.join(dir, 'std.err')} -A #{tail.to_i} |
|
232
|
+
puts CMD.cmd("grep -i -w 'error\\|[a-z]*exception' #{File.join(dir, 'std.err')} -A #{tail.to_i} |head -n #{tail.to_i}", :no_fail => true).read
|
233
233
|
elsif exit_status
|
234
234
|
puts Log.color(:magenta, "Completed jobs: ")
|
235
|
-
puts CMD.cmd("grep -i -w 'Completed step' #{File.join(dir, 'std.err')} | grep -v 'Retrying dep.' |
|
235
|
+
puts CMD.cmd("grep -i -w 'Completed step' #{File.join(dir, 'std.err')} | grep -v 'Retrying dep.' | tail -n #{tail.to_i}", :no_fail => true).read
|
236
236
|
else
|
237
237
|
puts Log.color(:magenta, "Log tail: ")
|
238
|
-
puts CMD.cmd(" cat #{File.join(dir, 'std.err')} | grep -v '^\\
|
238
|
+
puts CMD.cmd(" cat #{File.join(dir, 'std.err')} | grep -v '^[^\\s:]*\\[3.m' | tail -n #{tail.to_i} ").read
|
239
239
|
end
|
240
240
|
end
|
241
241
|
|