Quickstart

This guide shows how to create and run your first workflow using Pravaha.

Create Your First Task

Import the @Task decorator and define a task as a normal Python function:

from pravaha.core.task import Task
from pravaha.core.executor import TaskExecutor

@Task(name="task1")
def task1():
    print("Hello from Task Orchestrator")

Run the Workflow

Execute all registered tasks using the executor:

if __name__ == "__main__":
    TaskExecutor.execute()

Expected Output

Hello from Task Orchestrator