ลด 50% ทุกแพ็กเกจ เวลาจำกัด เริ่มต้นที่ $2.48/mo
Dagu

Dagu

Dagu คือ workflow scheduler แบบ self-contained ตั้งค่า cron jobs ด้วย YAML พร้อม DAG dependencies, retry อัตโนมัติ และ web UI สำหรับตรวจสอบสถานะ ใช้ไบนารีเดียวของ Go ไม่ต้องพึ่งฐานข้อมูล รันได้บน RAM เพียง 256 MB VPS ทางเลือกที่เรียบง่ายแทน Airflow เหมาะสำหรับ automation ส่วนตัวและ data pipeline ขนาดเล็ก

Version

Latest

Operating System

Ubuntu Server 24.04 LTS

Min. RAM

1 GB

IP Types

IPV4,IPV6

เข้าใช้งาน Web UI ของ Dagu

  1. เปิดเบราว์เซอร์แล้วไปที่: http://<SERVER_IP>:8080/login (HTTP)
  2. เข้าสู่ระบบโดยใช้ข้อมูลรับรองที่บันทึกไว้ใน: /root/.dagu-credentials

Ports

  • Web UI: 8080
  • gRPC coordinator: 50055 (internal)

Important Paths

System Config:

/usr/local/bin/dagu                # Binary
/etc/dagu/                         # Env directory
/etc/systemd/system/dagu.service   # Systemd service

โหมดบริการ (ระดับระบบ):

/var/lib/dagu/
├── dags/        # Workflows
├── logs/        # Execution logs
├── data/        # History
├── suspend/     # Pause flags
└── base.yaml    # Shared config

โหมด CLI (ระดับผู้ใช้):

~/.config/dagu/
├── dags/         # Workflows
├── config.yaml   # Configuration
└── base.yaml     # Shared config

~/.local/share/dagu/
├── logs/         # Execution logs
├── data/         # History
└── suspend/      # Pause flags

Service Management

# Check service status
systemctl status dagu

# Start the service
systemctl start dagu

# Stop the service
systemctl stop dagu

# Restart the service
systemctl restart dagu

การใช้งาน CLI เบื้องต้น

# Show help / available commands
dagu --help

# Show installed version
dagu version

# Install Dagu skills (auto-detect supported tools)
dagu ai install

# Install non-interactively (auto-confirm all prompts)
dagu ai install --yes

# Install to a specific skills directory
dagu ai install --skills-dir ~/.agents/skills

# Start a DAG workflow from a file or named workflow
dagu start my-workflow.yaml

# Pass parameters to a DAG (after --)
dagu start my-workflow.yaml -- param1=value1 param2=value2

# Execute a command directly as a DAG step
dagu exec -- python script.py

# Example with arguments
dagu exec -- python script.py --input data.csv

สร้าง Workflow แรกของคุณ (CLI Mode)

สร้างไดเรกทอรี DAGs:

mkdir -p ~/.config/dagu/dags

สร้างไฟล์ชื่อ hello.yaml (/root/.config/dagu/dags/hello.yaml):

steps:
  - name: hello
    command: echo "Hello from Dagu"

รันเวิร์กโฟลว์:

dagu start hello

สร้าง Workflow แรกของคุณ (Web Mode)

สร้างไฟล์ workflow:

vim /var/lib/dagu/dags/hello.yaml

เพิ่มเนื้อหาต่อไปนี้:

steps:
  - name: hello
    command: echo "Hello from Dagu"

เวิร์กโฟลว์จะถูกตรวจจับโดยอัตโนมัติจากบริการที่กำลังทำงานอยู่

คุณสามารถเรียกใช้งานได้จาก Web UI

More in Automation

Related apps.

ติดตั้ง Dagu เดี๋ยวนี้ เริ่มต้นที่ $2.48/เดือน