Sha256: e54bfc7bf82837619e384ef618f257333683dc900926040df5fa10f2f30a2b43

Contents?: true

Size: 300 Bytes

Versions: 16

Compression:

Stored size: 300 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 run
    if options['attempts'] + 1 >= CloudCrowd.config[:work_unit_retries]
      return 'made it!'
    else
      raise 'hell'
    end    
  end
  
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
documentcloud-cloud-crowd-0.0.2 test/config/actions/failure_testing.rb
documentcloud-cloud-crowd-0.0.3 test/config/actions/failure_testing.rb
documentcloud-cloud-crowd-0.0.4 test/config/actions/failure_testing.rb
documentcloud-cloud-crowd-0.0.5 test/config/actions/failure_testing.rb
documentcloud-cloud-crowd-0.0.6 test/config/actions/failure_testing.rb
documentcloud-cloud-crowd-0.1.0 test/config/actions/failure_testing.rb
documentcloud-cloud-crowd-0.1.1 test/config/actions/failure_testing.rb
documentcloud-cloud-crowd-0.2.0 test/config/actions/failure_testing.rb
documentcloud-cloud-crowd-0.2.1 test/config/actions/failure_testing.rb
documentcloud-cloud-crowd-0.2.2 test/config/actions/failure_testing.rb
documentcloud-cloud-crowd-0.2.3 test/config/actions/failure_testing.rb
cloud-crowd-0.2.3 test/config/actions/failure_testing.rb
cloud-crowd-0.2.2 test/config/actions/failure_testing.rb
cloud-crowd-0.2.1 test/config/actions/failure_testing.rb
cloud-crowd-0.2.0 test/config/actions/failure_testing.rb
cloud-crowd-0.1.0 test/config/actions/failure_testing.rb