Sha256: 03ec378cb4368ab948d63bda0358f3cd4ac117d8eca6877b6a354a5ea94091e3
Contents?: true
Size: 304 Bytes
Versions: 30
Compression:
Stored size: 304 Bytes
Contents
# Simple Action that fails the work unit until it is just about to exhaust # all of its retries. class FailureTesting < CloudCrowd::Action def process if options['attempts'] + 1 >= CloudCrowd.config[:work_unit_retries] return 'made it!' else raise 'hell' end end end
Version data entries
30 entries across 30 versions & 2 rubygems