You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "kimminw00 (via GitHub)" <gi...@apache.org> on 2023/09/15 16:49:26 UTC
[GitHub] [airflow] kimminw00 opened a new issue, #34399: Support for custom cronjobs for airflow helm chart
kimminw00 opened a new issue, #34399:
URL: https://github.com/apache/airflow/issues/34399
### Description
Since airflow helm chart only supports cleanup cronjob, user has to modify templates to add additional maintenance cronjobs
### Use case/motivation
For example, we can create multiple custom cronjobs using <code>values.yaml</code> below
```yaml
cronJobs:
cleanPods:
image: apache/airflow
schedule: "*/15 * * * *"
command: ~
args: ["bash", "-c", "exec airflow kubernetes cleanup-pods --namespace={{ .Release.Namespace }}"]
...
cleanDB:
image: apache/airflow
schedule: "30 3 1 * *"
command: ~
args: ["bash", "-c", "exec airflow db clean"]
...
backupDB:
image: CUSTOM_IMAGE
schedule: "0 1 1 * *"
command: ~
args: ["bash", "-c", "pg_dump -h HOST -U USER_NAME -Fc DATABASE_NAME | aws s3 cp - s3://<bucket_name>/<database_name>.dump"]
...
```
By providing custom cronjobs, we can flexibly respond to additional maintenance tasks as needed depending on the environment in which the airflow service is running.
### Related issues
_No response_
### Are you willing to submit a PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] hussein-awala commented on issue #34399: Support for custom cronjobs
Posted by "hussein-awala (via GitHub)" <gi...@apache.org>.
hussein-awala commented on issue #34399:
URL: https://github.com/apache/airflow/issues/34399#issuecomment-1721829183
Feel free to raise a PR to add this feature.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Support for custom cronjobs [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk closed issue #34399: Support for custom cronjobs
URL: https://github.com/apache/airflow/issues/34399
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org