Sha256: 7fab2d8bde135fd77caca8192568be82c7cedd0f63d5ef0927edd0d0045bb2f8

Contents?: true

Size: 524 Bytes

Versions: 46

Compression:

Stored size: 524 Bytes

Contents

class Job
  def initialize(listener, job_definition)
    @workers = []
    @definition = job_definition
  end



  def add_worker

  end

  def on_worker_complete
    @available_worker_slots += 1
    on_current_job_complete if current_job_complete?
  end

  def setup_child_process
    worker = ChildProcess.build("gorgon", "work", @worker_communication.name, @config_filename)

    worker_output = Tempfile.new("gorgon-worker")
    worker.io.stdout = worker_output
    worker.io.stderr = worker_output
    worker
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
gorgon-0.11.0 lib/gorgon/job.rb
gorgon-0.10.5 lib/gorgon/job.rb
gorgon-0.10.4 lib/gorgon/job.rb
gorgon-0.10.3 lib/gorgon/job.rb
gorgon-0.10.2 lib/gorgon/job.rb
gorgon-0.10.1 lib/gorgon/job.rb
gorgon-0.10.0 lib/gorgon/job.rb
gorgon-0.9.0 lib/gorgon/job.rb
gorgon-0.8.4 lib/gorgon/job.rb
gorgon-0.8.3 lib/gorgon/job.rb
gorgon-0.8.2 lib/gorgon/job.rb
gorgon-0.8.1 lib/gorgon/job.rb
gorgon-0.8.0 lib/gorgon/job.rb
gorgon-0.7.1 lib/gorgon/job.rb
gorgon-0.7.0 lib/gorgon/job.rb
gorgon-0.7.0.rc4 lib/gorgon/job.rb
gorgon-0.7.0.rc3 lib/gorgon/job.rb
gorgon-0.7.0.rc2 lib/gorgon/job.rb
gorgon-0.7.0.rc1 lib/gorgon/job.rb
gorgon-0.6.5 lib/gorgon/job.rb