50 % de réduction sur tous les plans, durée limitée. À partir de $2.48/mo
Dagu

Dagu

Dagu est un planificateur de workflows autonome. Tâches cron définies par YAML avec dépendances DAG, relances automatiques et une interface web de supervision. Un seul binaire Go, sans base de données, fonctionne sur un VPS de 256 MB. L'alternative minimaliste à Airflow pour l'automatisation personnelle et les petits pipelines de données.

Version

Dernier

Système d'exploitation

Serveur Ubuntu 24.04 LTS

RAM min.

1 GB

Types d'IP

IPV4,IPV6

Accéder à l'interface web de Dagu

  1. Ouvrez votre navigateur et rendez-vous sur : http://<SERVER_IP>:8080/login (HTTP)
  2. Connexion avec les identifiants stockés dans : /root/.dagu-credentials

Ports

  • Interface web : 8080
  • Coordinateur gRPC : 50055 (interne)

Chemins importants

Config système :

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

Mode service (niveau système) :

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

Mode CLI (niveau utilisateur) :

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

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

Gestion du service

# Check service status
systemctl status dagu

# Start the service
systemctl start dagu

# Stop the service
systemctl stop dagu

# Restart the service
systemctl restart dagu

Utilisation de base du 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

Créer votre premier workflow (mode CLI)

Créer le répertoire DAGs :

mkdir -p ~/.config/dagu/dags

Créer un fichier nommé hello.yaml (/root/.config/dagu/dags/hello.yaml):

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

Exécuter le workflow :

dagu start hello

Créer votre premier workflow (mode Web)

Créer le fichier de workflow :

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

Ajouter le contenu suivant :

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

Le workflow sera automatiquement détecté par le service en cours d'exécution.

Vous pouvez le déclencher depuis l'interface web.

Plus sur l'automatisation

Applications associées.

Déployer Dagu maintenant. À partir de 2,48 $/mois.