Sha256: 525a359baf7fc0f927ea5cda2e7c10fce5cdd8b02561763b2e64c8eff35cc8b2

Contents?: true

Size: 639 Bytes

Versions: 1

Compression:

Stored size: 639 Bytes

Contents

$: << File.expand_path('../../../lib', __FILE__)

require 'test/unit'

require 'rufus-json/automatic'
require 'ruote'
require 'ruote-redis'

ruote =
  Ruote::Dashboard.new(
    Ruote::Worker.new(
      Ruote::Redis::Storage.new('db' => 15, 'thread_safe' => true)))

ruote.storage.purge!
#ruote.noisy = true

ruote.register 'toto' do |workitem|
  workitem.fields['seen'] = Time.now.to_s
end

t = Time.now

50.times do
  wfid = ruote.launch(Ruote.define do
    toto; toto; toto; toto; toto
  end)
  p wfid
end

loop do
  count = ruote.storage.get_many('expressions', nil, :count => true)
  p count
  break if count < 1
end

p Time.now - t

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruote-redis-2.3.0 test/bm/loaded.rb