Sha256: 69fdfc924f1fa12d96675f6bb8423803e0b1aba46161a99c2f8c3ee25ef59401
Contents?: true
Size: 403 Bytes
Versions: 7
Compression:
Stored size: 403 Bytes
Contents
module Taskinator class TaskWorker def initialize(uuid) @uuid = uuid end def perform task = Taskinator::Task.fetch(@uuid) return if task.paused? || task.cancelled? begin task.start! task.complete! if task.can_complete? rescue Exception => e Taskinator.logger.error(e) task.fail!(e) raise e end end end end
Version data entries
7 entries across 7 versions & 1 rubygems