Module: Tasker::Types

Defined in:
lib/tasker.rb,
lib/tasker/types.rb,
lib/tasker/types/auth_config.rb,
lib/tasker/types/cache_config.rb,
lib/tasker/types/task_request.rb,
lib/tasker/types/engine_config.rb,
lib/tasker/types/health_config.rb,
lib/tasker/types/step_sequence.rb,
lib/tasker/types/step_template.rb,
lib/tasker/types/backoff_config.rb,
lib/tasker/types/database_config.rb,
lib/tasker/types/dependency_graph.rb,
lib/tasker/types/execution_config.rb,
lib/tasker/types/telemetry_config.rb,
lib/tasker/types/dependency_graph_config.rb

Overview

Types module for Tasker

This module contains all the type definitions used by the Tasker gem. It provides a central location for all type declarations, ensuring consistent type usage across the application.

Types are implemented using dry-struct and follow a consistent pattern with proper documentation. The module includes basic types for all Tasker data structures including:

  • StepTemplate - Defines the structure for workflow step templates
  • StepSequence - Contains a sequence of workflow steps
  • TaskRequest - Represents a request to create and execute a task

Examples:

Using a Tasker type

task_request = Tasker::Types::TaskRequest.new(
  name: 'my_task',
  context: { id: 123 }
)

Defined Under Namespace

Classes: AuthConfig, BackoffConfig, BaseConfig, CacheConfig, DatabaseConfig, DependencyGraph, DependencyGraphConfig, EngineConfig, ExecutionConfig, GraphEdge, GraphMetadata, GraphNode, HealthConfig, StepSequence, StepTemplate, TaskRequest, TelemetryConfig