Class: AWS::Flow::WorkerOptions
- Defined in:
- lib/aws/decider/options.rb
Overview
Options for activity and workflow workers.
Instance Attribute Summary collapse
-
#execution_workers ⇒ Object
The maximum number of execution workers that can be running at once.
-
#logger ⇒ Object
The logger to use for the worker.
-
#use_forking ⇒ Object
Whether to use Ruby’s ‘fork` for launching new workers.
Attributes included from Utilities::UpwardLookups
Attributes included from Utilities::UpwardLookups::InstanceMethods
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
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_workers ⇒ Object
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.
153 154 155 156 157 158 159 160 |
# File 'lib/aws/decider/options.rb', line 153 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 |
#logger ⇒ Object
The logger to use for the worker.
153 154 155 156 157 158 159 160 |
# File 'lib/aws/decider/options.rb', line 153 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_forking ⇒ Object
Whether to use Ruby’s ‘fork` for launching new workers. The default is `true`.
On Windows, ‘use_forking` should generally be set to `false`:
AWS::Flow::ActivityWorker.new(
@domain.client, @domain, ACTIVITY_TASKLIST, klass) { { use_forking: false } }
For more information, see [Important Notes](docs.aws.amazon.com/amazonswf/latest/awsrbflowguide/welcome.html#forking-windows-note) in the *AWS Flow Framework for Ruby Developer Guide*.
153 154 155 156 157 158 159 160 |
# File 'lib/aws/decider/options.rb', line 153 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 |