Module: Cadence

Extended by:
SingleForwardable
Defined in:
lib/cadence/thread_pool.rb,
lib/cadence.rb,
lib/cadence/json.rb,
lib/cadence/uuid.rb,
lib/cadence/types.rb,
lib/cadence/utils.rb,
lib/cadence/client.rb,
lib/cadence/errors.rb,
lib/cadence/worker.rb,
lib/cadence/metrics.rb,
lib/cadence/testing.rb,
lib/cadence/version.rb,
lib/cadence/activity.rb,
lib/cadence/metadata.rb,
lib/cadence/workflow.rb,
lib/cadence/saga/saga.rb,
lib/cadence/connection.rb,
lib/cadence/saga/result.rb,
lib/cadence/retry_policy.rb,
lib/cadence/saga/concern.rb,
lib/cadence/configuration.rb,
lib/cadence/error_handler.rb,
lib/cadence/metadata/base.rb,
lib/cadence/concerns/typed.rb,
lib/cadence/reset_strategy.rb,
lib/cadence/activity/poller.rb,
lib/cadence/workflow/future.rb,
lib/cadence/workflow/poller.rb,
lib/cadence/workflow/status.rb,
lib/cadence/activity/context.rb,
lib/cadence/middleware/chain.rb,
lib/cadence/middleware/entry.rb,
lib/cadence/workflow/context.rb,
lib/cadence/workflow/history.rb,
lib/cadence/connection/errors.rb,
lib/cadence/connection/thrift.rb,
lib/cadence/executable_lookup.rb,
lib/cadence/execution_options.rb,
lib/cadence/metadata/activity.rb,
lib/cadence/metadata/decision.rb,
lib/cadence/metadata/workflow.rb,
lib/cadence/workflow/decision.rb,
lib/cadence/workflow/executor.rb,
lib/cadence/concerns/executable.rb,
lib/cadence/workflow/dispatcher.rb,
lib/cadence/workflow/serializer.rb,
lib/cadence/activity/async_token.rb,
lib/cadence/metrics_adapters/log.rb,
lib/cadence/thread_local_context.rb,
lib/cadence/metrics_adapters/null.rb,
lib/cadence/workflow/history/event.rb,
lib/cadence/workflow/state_manager.rb,
lib/cadence/activity/task_processor.rb,
lib/cadence/testing/future_registry.rb,
lib/cadence/workflow/execution_info.rb,
lib/cadence/workflow/history/window.rb,
lib/cadence/testing/cadence_override.rb,
lib/cadence/workflow/serializer/base.rb,
lib/cadence/testing/workflow_override.rb,
lib/cadence/testing/workflow_execution.rb,
lib/cadence/workflow/convenience_methods.rb,
lib/cadence/workflow/replay_aware_logger.rb,
lib/cadence/workflow/history/event_target.rb,
lib/cadence/testing/local_activity_context.rb,
lib/cadence/testing/local_workflow_context.rb,
lib/cadence/workflow/decision_state_machine.rb,
lib/cadence/workflow/serializer/start_timer.rb,
lib/cadence/workflow/decision_task_processor.rb,
lib/cadence/workflow/serializer/cancel_timer.rb,
lib/cadence/workflow/serializer/fail_workflow.rb,
lib/cadence/workflow/serializer/record_marker.rb,
lib/cadence/activity/workflow_convenience_methods.rb,
lib/cadence/workflow/serializer/complete_workflow.rb,
lib/cadence/workflow/serializer/schedule_activity.rb,
lib/cadence/workflow/serializer/start_child_workflow.rb,
lib/cadence/workflow/serializer/request_activity_cancellation.rb

Overview

Provides context for Cadence::Activity::WorkflowConvenienceMethods

Defined Under Namespace

Modules: Concerns, Connection, ErrorHandler, JSON, Metadata, MetricsAdapters, Middleware, ResetStrategy, Saga, Testing, ThreadLocalContext, Types, UUID, Utils Classes: Activity, ActivityException, Client, ClientError, Configuration, Error, ExecutableLookup, ExecutionOptions, InternalError, Metrics, NonDeterministicWorkflowError, RetryPolicy, ThreadPool, TimeoutError, Worker, Workflow

Constant Summary collapse

VERSION =
'0.1.13'.freeze

Class Method Summary collapse

Class Method Details

.configurationObject


29
30
31
32
# File 'lib/cadence.rb', line 29

def configuration
  warn '[DEPRECATION] This method is now deprecated without a substitution'
  config
end

.configure {|config| ... } ⇒ Object

Yields:

  • (config)

25
26
27
# File 'lib/cadence.rb', line 25

def configure(&block)
  yield config
end

.loggerObject


34
35
36
# File 'lib/cadence.rb', line 34

def logger
  config.logger
end

.metricsObject


38
39
40
# File 'lib/cadence.rb', line 38

def metrics
  @metrics ||= Metrics.new(config.metrics_adapter)
end