Giảm 50% tất cả các gói, thời gian có hạn. Bắt đầu từ $2.48/mo
Dagu

Dagu

Dagu là trình lên lịch workflow độc lập. Định nghĩa cron job bằng YAML với phụ thuộc DAG, tự động thử lại và giao diện web để giám sát. Một file nhị phân Go duy nhất, không cần cơ sở dữ liệu, chạy được trên VPS chỉ 256 MB RAM. Lựa chọn thay thế tối giản cho Airflow, phù hợp với tự động hóa cá nhân và các pipeline dữ liệu nhỏ.

Phiên bản

Mới nhất

Hệ Điều Hành

Ubuntu Server 24.04 LTS Máy chủ

RAM tối thiểu

1 GB

Các loại IP

IPV4,IPV6

Truy cập giao diện web Dagu

  1. Mở trình duyệt và truy cập: http://<SERVER_IP>:8080/login (HTTP)
  2. Đăng nhập bằng thông tin xác thực lưu tại: /root/.dagu-credentials

Cổng

  • Giao diện Web: 8080
  • Điều phối viên gRPC: 50055 (nội bộ)

Đường Dẫn Quan Trọng

Cấu hình hệ thống:

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

Chế độ Service (cấp hệ thống):

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

Chế độ CLI (cấp người dùng):

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

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

Quản lý Dịch vụ

# Check service status
systemctl status dagu

# Start the service
systemctl start dagu

# Stop the service
systemctl stop dagu

# Restart the service
systemctl restart dagu

Sử dụng CLI cơ bản

# 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

Tạo Workflow Đầu Tiên (Chế độ CLI)

Tạo thư mục DAGs:

mkdir -p ~/.config/dagu/dags

Tạo một file có tên hello.yaml (/root/.config/dagu/dags/hello.yaml):

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

Chạy workflow:

dagu start hello

Tạo Workflow Đầu Tiên (Chế độ Web)

Tạo file workflow:

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

Thêm nội dung sau:

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

Workflow sẽ được service đang chạy tự động nhận diện.

Bạn có thể kích hoạt nó từ giao diện web.

Thêm trong Tự động hóa

Các ứng dụng liên quan.

Triển khai Dagu ngay. Từ $2.48/tháng.