Files
tar-valon-ansible/app-configs/aranea/dagu/dags/example-03-scheduling.yaml
T

22 lines
544 B
YAML

# Scheduled Workflows
# Run workflows automatically on a schedule
description: Example of a scheduled workflow
# Uncomment to run daily at 2:00 AM
# schedule: "0 2 * * *"
# Schedule examples:
# "0 * * * *" - Every hour
# "*/5 * * * *" - Every 5 minutes
# "0 9 * * 1-5" - Weekdays at 9 AM
# "0 0 1 * *" - First day of each month
histRetentionDays: 7 # Keep 7 days of history
steps:
- command: |
echo "Running scheduled task"
echo "Current time: $(date)"
- command: echo "Cleaning up old data"