taskflow-rs 0.1.1

A high-performance, async-first task orchestration framework for Rust
Documentation
---
marp: true
theme: gaia
class: invert
paginate: true
header: 'taskflow-rs: Fast Task Orchestration'
footer: 'Rust Hackathon'
---

# taskflow-rs
## Modern Async Task Scheduler

**Rust • Async • Distributed • Reliable**

---

# 🎯 What is TaskFlow?

**Rust-native task orchestration framework**

- ✅ Async-first scheduler
- ✅ Extensible handlers  
- ✅ Dependency resolution
- ✅ Automatic retries

```rust
let taskflow = TaskFlow::new(config).await?;
let task_id = taskflow.submit_task(definition).await?;
```

---

# ⚡ Live Demo: Python Execution

```rust
// Submit Python task
taskflow.submit_task(
    TaskDefinition::new("math", "python_script")
        .with_payload("script", 
            "print('Hello!'); result = 2+3*4; print(f'Result: {result}')"
        )
).await?;
```

**Output**: `Hello!\nResult: 14`

---

# ⚡ Live Demo: File Operations

```rust
// Create file
taskflow.submit_task(
    TaskDefinition::new("create", "file_operation")
        .with_payload("operation", "write")
        .with_payload("path", "/tmp/demo.txt")
        .with_payload("content", "TaskFlow Demo!")
).await?;
```

**Result**: File created successfully

---

# 🏗️ Architecture

## Core Components

- **Scheduler**: Smart task distribution
- **Executor**: Multi-handler execution
- **Storage**: Pluggable backends
- **Framework**: Unified API

---

# 🔌 Supported Handlers

- 🐍 **Python** scripts
- 📁 **File** operations  
- 🌐 **HTTP** requests
- 🐚 **Shell** commands
- 💬 **Notifications** (Slack/Email/Webhook/Discord)

---

# 🚀 Key Features

- **Async-first** performance
- 🔄 **Automatic retry** with backoff
- 📊 **Real-time metrics**
- 🔗 **Dependency resolution**
- 🧩 **Extensible** architecture

---

### 💡 Why We Built This Project

- 🔥 **Real production pain**: Existing solutions too slow for our workflow needs
- 💸 **Cost concerns**: Cloud-based orchestrators too expensive at scale
- ⚠️ **Reliability issues**: Frequent failures in Python-based task runners
- 🔄 **Complex dependencies**: Needed better dependency management than existing tools
- 🚫 **Vendor lock-in**: Wanted open-source alternative to proprietary services

---

# 🎯 Use Cases

- Data processing pipelines
- ETL workflows
- Microservice orchestration  
- Batch job scheduling
- Notification systems

---

# 🚀 Get Started

```bash
git clone <repo>
cd taskflow-rs
cargo run --example simple_execution
```

**Try it now!**

---

# 🎉 Thank You!

## Questions?

**GitHub**: `gh repo clone lispking/taskflow-rs`

*Fast • Reliable • Rust-powered*