Class: AWS::Flow::WorkerOptions

Inherits:
Options
  • Object
show all
Defined in:
lib/aws/decider/options.rb

Overview

Options for activity and workflow workers.

Instance Attribute Summary collapse

Attributes included from Utilities::UpwardLookups

#precursors

Attributes included from Utilities::UpwardLookups::InstanceMethods

#precursors

Method Summary

Methods inherited from Options

#get_options, inherited, #initialize, #method_missing

Methods included from Utilities::UpwardLookups

#held_properties, #properties, #property

Methods included from Utilities::UpwardLookups::InstanceMethods

#look_upwards

Constructor Details

This class inherits a constructor from AWS::Flow::Options

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class AWS::Flow::Options

Instance Attribute Details

#execution_workersObject

The maximum number of execution workers that can be running at once. You can set this to zero or ‘nil`, in which case the default value of 20 will be used.



147
148
149
150
151
152
153
154
# File 'lib/aws/decider/options.rb', line 147

class WorkerOptions < Options
  property(:logger, [])
  # At current, we only support one poller per worker
  # property(:poller_workers, [lambda(&:to_i)])
  property(:execution_workers, [lambda(&:to_i)])
  property(:use_forking, [lambda {|x| x == true}] )
  default_classes << WorkerDefaults.new
end

#loggerObject

The logger to use for the worker.



147
148
149
150
151
152
153
154
# File 'lib/aws/decider/options.rb', line 147

class WorkerOptions < Options
  property(:logger, [])
  # At current, we only support one poller per worker
  # property(:poller_workers, [lambda(&:to_i)])
  property(:execution_workers, [lambda(&:to_i)])
  property(:use_forking, [lambda {|x| x == true}] )
  default_classes << WorkerDefaults.new
end

#use_forkingObject

Whether to use Ruby’s ‘fork` for launching new workers. The default is `true`.

On Windows, this should be set to ‘false` unless you are running Ruby under Cygwin. For more information, see [Important Notes](docs.aws.amazon.com/amazonswf/latest/awsrbflowguide/important-notes.html#forking-windows-note) in the *AWS Flow Framework for Ruby Developer Guide*.



147
148
149
150
151
152
153
154
# File 'lib/aws/decider/options.rb', line 147

class WorkerOptions < Options
  property(:logger, [])
  # At current, we only support one poller per worker
  # property(:poller_workers, [lambda(&:to_i)])
  property(:execution_workers, [lambda(&:to_i)])
  property(:use_forking, [lambda {|x| x == true}] )
  default_classes << WorkerDefaults.new
end