Sha256: 14abc1b00e66cac5cd33dbf8c965e1d5f802aea2fedf75a00bc0021a64c28212

Contents?: true

Size: 256 Bytes

Versions: 10

Compression:

Stored size: 256 Bytes

Contents

module Taskinator
  class TaskWorker
    attr_reader :uuid

    def initialize(uuid)
      @uuid = uuid
    end

    def perform
      task = Taskinator::Task.fetch(@uuid)
      return if task.paused? || task.cancelled?
      task.start!
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
taskinator-0.3.10 lib/taskinator/task_worker.rb
taskinator-0.3.9 lib/taskinator/task_worker.rb
taskinator-0.3.7 lib/taskinator/task_worker.rb
taskinator-0.3.6 lib/taskinator/task_worker.rb
taskinator-0.3.5 lib/taskinator/task_worker.rb
taskinator-0.3.3 lib/taskinator/task_worker.rb
taskinator-0.3.2 lib/taskinator/task_worker.rb
taskinator-0.3.1 lib/taskinator/task_worker.rb
taskinator-0.3.0 lib/taskinator/task_worker.rb
taskinator-0.2.0 lib/taskinator/task_worker.rb