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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9227ad4cb1b0693292f83fa73b32a7e93e394962
4
- data.tar.gz: edffcead7218ee6b035ec40cf83ec81000225eec
3
+ metadata.gz: 6632ef8c5619f991fe5745a1cccb5b4a78b9cc8a
4
+ data.tar.gz: adba52cadfc266a6b74ed5ac9c88e50421ddf608
5
5
  SHA512:
6
- metadata.gz: 71f104a48e0be07359ce59f196818d5fef1dabf9b9a8293bb75243216cd154b48ffce3912911033bfc9981583c43c391d3f22c2d115272e0bf38f1901fb7d5dd
7
- data.tar.gz: 909e1acf886e349d1e37a5e3f71c370a4c79abce82d9c05601a12b99dda9d6a4611081aaf19098d3fdd0d89127149263e0454b737fb5f15c8d2ae844f9020e0d
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
@@ -163,6 +163,7 @@ workflows.sort.each do |workflow,tasks|
163
163
  end
164
164
  end
165
165
  str << " #{ status_msg status }"
166
+ str << " (dirty)" if status == 'done' && Workflow.load_step(file).dirty?
166
167
 
167
168
  if inputs and inputs.any? and info[:inputs]
168
169
  job_inputs = info[:inputs]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.21.134
4
+ version: 5.21.135
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez