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)
Option 1: Docker Setup (Recommended) 🐳
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.rbSteps: 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.rbSteps: 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.rbSteps: 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
Open GraphQL Interface: Navigate to
http://localhost:3000/tasker/graphqlCreate an E-commerce Order Task:
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 settingsconfig/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