rbbt-util 5.21.134 → 5.21.135
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/system/clean +5 -1
- data/share/rbbt_commands/system/status +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6632ef8c5619f991fe5745a1cccb5b4a78b9cc8a
|
4
|
+
data.tar.gz: adba52cadfc266a6b74ed5ac9c88e50421ddf608
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c950a962f67d85924b54e6622713d391f5b265848da7d2ba737e4ffaf5c8227b4f7dcb6525efb2884776fe324b4503801d85107bf7b18523367025b257afd05
|
7
|
+
data.tar.gz: 9a7e9d39bb698bcbbd8dc936bf8a241d86e774aed867d7f2d0d303c68124f5232996b13f75fd3b14e58e9c032f3db9ded28c96fcd21a2c0b6f18b6eeccaeac1d
|
@@ -16,6 +16,7 @@ $ rbbt system clean <workflow> <task>
|
|
16
16
|
-a--all Apply to all jobs, not only uncompleted
|
17
17
|
-f--force Remove locks and files regardless of been active
|
18
18
|
-q--quick Quick check
|
19
|
+
-d--dirty Clean dirty jobs
|
19
20
|
-h--help Print this help
|
20
21
|
EOF
|
21
22
|
rbbt_usage and exit 0 if options[:help]
|
@@ -27,6 +28,7 @@ task = task.split "," if task
|
|
27
28
|
|
28
29
|
all = options.delete :all
|
29
30
|
force = options.delete :force
|
31
|
+
dirty = options.delete :dirty
|
30
32
|
|
31
33
|
puts Log.color(:magenta, "# System clean")
|
32
34
|
|
@@ -96,10 +98,12 @@ TSV.traverse jobs, :_bar => "Checking job status" do |file,i|
|
|
96
98
|
status = :dead if status != "done" and pid and not Misc.pid_exists?(pid)
|
97
99
|
status = :sync if status != "done" and File.exist? file
|
98
100
|
|
101
|
+
status = :dirty if info[:status] == "done" and dirty and Workflow.load_step(file).dirty?
|
102
|
+
|
99
103
|
status = status.to_s
|
100
104
|
end
|
101
105
|
|
102
|
-
next unless (force and status !~ /done/) or status =~ /\bnopid/ or status =~ /\berror$/ or status =~ /\bmissing$/ or status =~ /\baborted$/ or status =~ /\bdead$/ or status =~ /\bsync$/ or status == ""
|
106
|
+
next unless (force and status !~ /done/) or status == 'dirty' or status =~ /\bnopid/ or status =~ /\berror$/ or status =~ /\bmissing$/ or status =~ /\baborted$/ or status =~ /\bdead$/ or status =~ /\bsync$/ or status == ""
|
103
107
|
puts " Removing #{ file } - #{status}"
|
104
108
|
Step.clean(file)
|
105
109
|
end
|