rbbt-util 5.17.4 → 5.17.5

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: a7fe012a90bd3fda632307cdd2bc21e3020b1814
4
- data.tar.gz: c5d10734f03329aa7894c55287e8b2fb796cfa7f
3
+ metadata.gz: ebbbcd7563b7c4c3bd68ac9ebef1d81318430cf4
4
+ data.tar.gz: f3f0e6c0b52149de5fc1d2dfda1e88afda0963e1
5
5
  SHA512:
6
- metadata.gz: 3dcd0d695669e781a8f6fa009e9db1b603becdbf50c787f46a3cc21813bf4a57e0be11ada30023994e40de48e1b6367227d19081e2343950008e28ab117077ac
7
- data.tar.gz: 1a42db795b2f52a78b2bf1fde307f3d5a85bdbb363430eb28b87aabf0becaf45302331d0e5bf05e0698119b8258c37c7f349ef978cf241151255fcce0b154cdf
6
+ metadata.gz: 8756e82fa2249eae15ffe96ee0cb81b94964f4e0eb84fd1588248440ed12cb9b3030c2801741b66cb44d456fe5ac396784d48789f5b12bcab3bc02ff58d69f16
7
+ data.tar.gz: 72210aa14174435437a7420472f231782aa150c990036fcbadd46a44e96b136ebdd5ab6be5146700869d06e38868cbbee2a0aa00c80d24c45ef25a3ce45058be
@@ -76,7 +76,6 @@ jobs = Rbbt.job_info workflow, task
76
76
  workflows = {}
77
77
 
78
78
  jobs.each do |file,i|
79
- next if i[:done]
80
79
  info = begin
81
80
  Open.open(i[:info_file]) do |f|
82
81
  Marshal.load(f)
@@ -87,12 +86,13 @@ jobs.each do |file,i|
87
86
 
88
87
  pid = info[:pid]
89
88
 
90
- status = info[:status]
91
- status = :missing if status == :done and not File.exists? file
89
+ status = info[:status].to_s
90
+ status = :missing if status == "done" and not File.exists? file
92
91
  status = :dead if status != "done" and pid and not Misc.pid_exists?(pid)
92
+ status = :sync if status != "done" and File.exists? file
93
93
 
94
94
  status = status.to_s
95
- next unless status =~ /\berror$/ or status =~ /\bmissing$/ or status =~ /\baborted$/ or status =~ /\bdead$/ or status == "" or (force and status == 'noinfo')
95
+ next unless status =~ /\berror$/ or status =~ /\bmissing$/ or status =~ /\baborted$/ or status =~ /\bdead$/ or status =~ /\bsync$/ or status == "" or (force and status == 'noinfo')
96
96
  puts " Removing #{ file } - #{status}"
97
97
  Step.clean(file)
98
98
  end
@@ -116,7 +116,7 @@ jobs = Rbbt.job_info workflow, task
116
116
  workflows = {}
117
117
 
118
118
  jobs.each do |file,info|
119
- next unless all or not info[:done]
119
+ next unless all or not info[:done] or not File.exists? file
120
120
  workflow = info[:workflow]
121
121
  task = info[:task]
122
122
  workflows[workflow] ||= {}
@@ -141,7 +141,13 @@ workflows.sort.each do |workflow,tasks|
141
141
  status = info[:status]
142
142
  status = :missing if status == :done and not File.exists? file
143
143
  status = status.to_s
144
- status << Log.color(:red, " (dead)") if status != "done" and pid and not Misc.pid_exists?(pid)
144
+ if status != "done" and pid and not Misc.pid_exists?(pid)
145
+ if File.exists? file
146
+ status << Log.color(:red, " (out of sync)")
147
+ else
148
+ status << Log.color(:red, " (dead)")
149
+ end
150
+ end
145
151
  str = file.dup
146
152
  str << " #{ status_msg status }"
147
153
  str << "; #{pid_msg pid}" unless status == "done"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.17.4
4
+ version: 5.17.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-09 00:00:00.000000000 Z
11
+ date: 2015-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake