Sha256: 1c2bc8713ef48e2290492719ed4b6133c94b4e05510910fc3e1b8e25a7e41195
Contents?: true
Size: 883 Bytes
Versions: 3
Compression:
Stored size: 883 Bytes
Contents
require 'legion/transport/exchanges/task' module Legion module Exception class InvalidTaskStatus < ArgumentError # exception class end class InvalidTaskId < ArgumentError # exception class end end end module Legion module Transport module Messages class TaskUpdate < Legion::Transport::Message def routing_key 'task.update' end def exchange Legion::Transport::Exchanges::Task end def valid_status conditioner = ['conditioner.queued', 'conditioner.failed', 'conditioner.exception'] transformer = ['transformer.queued', 'transformer.succeeded', 'transformer.exception'] task = ['task.scheduled', 'task.queued', 'task.completed', 'task.exception', 'task.delayed'] conditioner + transformer + task end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems