GabrielGomiz commented on issue #39435:
URL: https://github.com/apache/airflow/issues/39435#issuecomment-2096007302
```
#!/usr/bin/python3
from airflow import DAG
from datetime import datetime
from airflow.operators.bash import BashOperator
from airflow.hooks.base import BaseHook
default_args = {
'owner': 'ggomiz',
'depends_on_past': False,
'start_date': datetime(2024,5,6),
'email': ['[email protected]'],
'email_on_failure': True,
'email_on_retry': False
}
# hourly redis dag
dag_hourly = DAG(dag_id='redis_test', default_args=default_args, schedule='0
* * * *', catchup=False, tags=["dbservers", "backups", "redis"])
task_args = {
'retries': 0,
'trigger_rule': 'all_done'
}
# hourly backup task
task_daily = BashOperator(task_id="test_redis_master",
bash_command="cronjob.sh -q -u root
/srv/redis/scripts/redisbackup.sh master",
dag=dag_hourly, queue = "galadriel",
default_args=task_args)
```
This minimal DAG to make an hourly backup of our redis database is getting
incorrect schedule.

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]