Sha256: 61885ff04d8407c87688fe56ad951001371dcf7191d40496867f101fa85f34c1

Contents?: true

Size: 279 Bytes

Versions: 9

Compression:

Stored size: 279 Bytes

Contents

require 'rubygems'
# require 'gearman'
# require 'gearman/server'
require '../lib/gearman'
require '../lib/gearman/server'
require 'pp'

Gearman::Util.debug = true
w = Gearman::Server.new('localhost:4730')

loop {
  pp "Status: ", w.status
  pp "Workers: ", w.workers
  sleep 5
}

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
gearman-ruby-3.0.8 examples/server.rb
gearman-ruby-3.0.7 examples/server.rb
gearman-ruby-3.0.6 examples/server.rb
gearman-ruby-3.0.4 examples/server.rb
gearman-ruby-3.0.3 examples/server.rb
gearman-ruby-3.0.2 examples/server.rb
gearman-ruby-3.0.1 examples/server.rb
evented-gearman-ruby-1.0.0 examples/server.rb
gearman-ruby-2.0.0 examples/server.rb