kaya 0.0.12 → 0.0.13

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: d29907ccd295eb6282d151db7296cd801742ea59
4
- data.tar.gz: 2620c3ea5a35f56a1c3715ea2fc453ff4d965755
3
+ metadata.gz: 3f9d801b48a97d14560149426d8140912a8c7d9f
4
+ data.tar.gz: 177c500cad21cb0d3088c22516e499db5b81c29f
5
5
  SHA512:
6
- metadata.gz: 2d3dca0cff9cf94737eb7267ce398e188010fea1fc799c558cc744538db7ddbb7ef7131cdd73b3e2e7f0097216f7af3cbac8220d23d5aaf7e79ca530097018cb
7
- data.tar.gz: 09e4a1b26dd6022c8c79596a83b1edb212fe47874c378346fbdd6566e3ea3bd51c3ad3e85fb35fab05ace92a6e5d709e38c7985791b4bace4d422c1395a7507a
6
+ metadata.gz: 772acf31863e217ce2df5333f620c9244d1cbec4bafab517384f5dc105595a2e61a11ad23d7d043e3928cb838791973f9bdfaeb018110dc0f0e6136b370148b5
7
+ data.tar.gz: fcc29674b853670b1020d905287428479925d1766b04ad57b226d1ae329f31b4587c925e50f3e6e0ee4e2c88cca485e49ba92d03fcc881bc59240edf3ad3d3dd
@@ -53,7 +53,7 @@ module Kaya
53
53
  $K_LOG.debug "Suite #{suite_name} setted as running" if $K_LOG
54
54
 
55
55
  # Starts workers
56
- Kaya::Workers::ExecutionChecker.perform_async(suite.id) # Work until execution finish
56
+ # Kaya::Workers::ExecutionChecker.perform_async(suite.id) # Work until execution finish
57
57
 
58
58
  execution_id = suite.last_result
59
59
  started = true
@@ -5,7 +5,7 @@ module Kaya
5
5
 
6
6
  workers_dir = workers_dir = __FILE__.split("/")[0..-2].join("/")+ "/workers"
7
7
 
8
- output = Kaya::Support::Console.execute "sidekiq -r #{workers_dir}/execution_checker.rb -d -L kaya/sidekiq_log -P kaya/sidekiq_pid"
8
+ output = Kaya::Support::Console.execute "sidekiq -r #{workers_dir}/execution_performer.rb -d -L kaya/sidekiq_log -P kaya/sidekiq_pid"
9
9
 
10
10
  print "\n* Sidekiq:"
11
11
  raise "Could not start Sidekiq correctly. Read kaya/sidekiq_log file for more information" if not started?
@@ -53,6 +53,12 @@ module Kaya
53
53
  result.save!
54
54
  $K_LOG.debug "[result:#{result.id}] Process => #{result.pid}(PID) | command => saved | result as => running" if $K_LOG
55
55
 
56
+ suite = Kaya::Suites::Suite.get(result.suite_id)
57
+ begin
58
+ suite.check_last_result!
59
+ sleep 2
60
+ end while not suite.is_ready?
61
+
56
62
  end
57
63
  end
58
64
  end
data/lib/kaya/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Kaya
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
data/lib/kaya.rb CHANGED
@@ -88,7 +88,6 @@ require_relative "kaya/support/change_inspector"
88
88
 
89
89
 
90
90
  # Background jobs
91
- require_relative "kaya/background_jobs/workers/execution_checker"
92
91
  require_relative "kaya/background_jobs/workers/execution_performer"
93
92
  require_relative "kaya/background_jobs/workers/garbage_cleaner"
94
93
  require_relative "kaya/background_jobs/sidekiq"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kaya
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Rodriguez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-06 00:00:00.000000000 Z
11
+ date: 2015-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -276,7 +276,6 @@ files:
276
276
  - lib/kaya/API/suite.rb
277
277
  - lib/kaya/API/suites.rb
278
278
  - lib/kaya/background_jobs/sidekiq.rb
279
- - lib/kaya/background_jobs/workers/execution_checker.rb
280
279
  - lib/kaya/background_jobs/workers/execution_performer.rb
281
280
  - lib/kaya/background_jobs/workers/garbage_cleaner.rb
282
281
  - lib/kaya/commands/bye.rb
@@ -1,20 +0,0 @@
1
- require 'kaya'
2
-
3
- module Kaya
4
- module Workers
5
- class ExecutionChecker
6
- include Sidekiq::Worker
7
- def perform(suite_id)
8
-
9
- Kaya::Support::Configuration.get
10
- Kaya::Database::MongoConnector.new Kaya::Support::Configuration.db_connection_data
11
-
12
- suite = Kaya::Suites::Suite.get(suite_id)
13
- begin
14
- suite.check_last_result!
15
- sleep 2
16
- end while not suite.is_ready?
17
- end
18
- end
19
- end
20
- end