Sha256: 1b239314d81afc148aec624bcbd18f89f769989d9c7fa6f94baab9de5e180194
Contents?: true
Size: 316 Bytes
Versions: 17
Compression:
Stored size: 316 Bytes
Contents
module Taskinator class TaskWorker attr_reader :uuid def initialize(uuid) @uuid = uuid end def perform task = Taskinator::Task.fetch(@uuid) raise "ERROR: Task '#{@uuid}' not found." unless task return if task.paused? || task.cancelled? task.start! end end end
Version data entries
17 entries across 17 versions & 1 rubygems