Quick Start Guide

Goal: Working Workflow in 5 Minutes

This guide will get you from zero to a working Tasker application with complete workflows in 5 minutes. We'll use our automated demo application builder to create a full-featured Rails app with real-world workflow examples, then explore how to customize and extend them.

🚀 New in Tasker Engine 1.0.6: This guide leverages our enterprise-grade demo application builder with advanced analytics capabilities:

  • Automated Setup: One-command installation with complete Rails application

  • Real-World Examples: E-commerce, inventory, and customer management workflows

  • Performance Analytics: Advanced bottleneck analysis and performance monitoring

  • Task Visualization: Mermaid diagram generation for workflow visualization

  • EventRouter Architecture: Trace backend integration with structured logging

  • Full Observability: OpenTelemetry tracing and Prometheus metrics integration

  • Production Ready: Complete with Redis, Sidekiq, and comprehensive documentation

Why this approach? Instead of manual setup, we'll use proven patterns from our demo builder that create production-ready applications instantly.

Prerequisites (1 minute)

Ensure you have:

  • Ruby 3.2+ with bundler

  • PostgreSQL running locally

  • Basic terminal access

  • Optional: Redis for caching (will be configured automatically)

Installation & Setup (2 minutes)

Create a complete Tasker application with zero dependencies:

Option 2: Traditional Setup

For existing Rails applications or local development:

This creates a complete Rails application with:

  • Tasker gem installed and configured

  • All 21 migrations executed with SQL functions for performance optimization

  • 3 complete workflows (e-commerce, inventory, customer management)

  • Redis & Sidekiq configured for background processing

  • OpenTelemetry tracing and Prometheus metrics

  • Performance configuration with execution tuning examples

Skip to "Exploring Your Workflows" below to start using your new application!

Option 3: Manual Installation (Existing Rails App)

If you have an existing Rails application:

Exploring Your Workflows (2 minutes)

If you used the automated demo application builder, you now have a complete Rails application with three working workflows. Let's explore them!

Start Your Application

For Docker Setup:

For Traditional Setup:

Explore the Demo Workflows

Your application includes three complete, production-ready workflows:

1. E-commerce Order Processing

  • File: app/tasks/ecommerce/order_processing_handler.rb

  • Steps: Validate order → Process payment → Update inventory → Send confirmation

  • Features: Retry logic, error handling, real API integration with DummyJSON

2. Inventory Management

  • File: app/tasks/inventory/stock_management_handler.rb

  • Steps: Check stock levels → Update quantities → Generate reports → Send alerts

  • Features: Conditional logic, parallel processing, data aggregation

3. Customer Management

  • File: app/tasks/customer/profile_management_handler.rb

  • Steps: Validate customer → Update profile → Sync external systems → Send notifications

  • Features: External API calls, data transformation, notification patterns

Test the Workflows

Access your application's interfaces:

Create and Execute a Task via GraphQL

  1. Open GraphQL Interface: Navigate to http://localhost:3000/tasker/graphql

  2. Create an E-commerce Order Task:

  1. Monitor Task Progress:

Performance Configuration (1 minute)

Your demo application includes comprehensive execution configuration examples. Explore the performance tuning options:

View Current Configuration

Environment-Specific Tuning

Your application includes configuration examples in:

  • config/initializers/tasker.rb: Main configuration with execution settings

  • config/execution_tuning_examples.rb: 7 environment-specific examples:

    • Development: Conservative settings (2-6 concurrent steps)

    • Production: High-performance (5-25 concurrent steps)

    • High-Performance: Maximum throughput (10-50 concurrent steps)

    • API-Heavy: Optimized for external APIs (3-8 concurrent steps)

    • Testing: Minimal concurrency for reliability (1-3 concurrent steps)

Monitor Performance

Creating Custom Workflows

Want to create your own workflow? Use our proven patterns:

1. Generate New Workflow Structure

2. Configure Your Workflow

Edit config/tasker/tasks/welcome_user/welcome_handler.yaml:

Last updated