You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2023/01/07 04:03:35 UTC

[GitHub] [airflow] ivarec opened a new issue, #28778: Script "clean-logs.sh" has an unexpected burst behavior

ivarec opened a new issue, #28778:
URL: https://github.com/apache/airflow/issues/28778

   ### Apache Airflow version
   
   2.5.0
   
   ### What happened
   
   I've noticed that my Airflow Scheduler logs are full of the following message:
   
       Trimming airflow logs to 15 days.
       Trimming airflow logs to 15 days.
       ...
   
   My deployment uses the Helm chart, so it's probably specific to the Docker related assets.
   This script has a loop where every 60 seconds it will delete old log files. However, on every activation, the part where it prints the 
   log message and deletes the file is burst a few hundred times in less than a second. The cycle repeats.
   
   ### What you think should happen instead
   
   It should only print one log message (and delete files once) on every cycle.
   
   ### How to reproduce
   
   Just comment out the lines regarding the actual file deletion and run it in any bash shell. It should get triggered after 15 minutes.
   
   ### Operating System
   
   openSUSE Tumbleweed
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   _No response_
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit 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] potiuk closed issue #28778: Script "clean-logs.sh" has an unexpected burst behavior

Posted by GitBox <gi...@apache.org>.
potiuk closed issue #28778: Script "clean-logs.sh" has an unexpected burst behavior
URL: https://github.com/apache/airflow/issues/28778


-- 
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


[GitHub] [airflow] potiuk commented on issue #28778: Script "clean-logs.sh" has an unexpected burst behavior

Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #28778:
URL: https://github.com/apache/airflow/issues/28778#issuecomment-1374414503

   Feel free to improve it @ivarec . Assigned you


-- 
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


[GitHub] [airflow] boring-cyborg[bot] commented on issue #28778: Script "clean-logs.sh" has an unexpected burst behavior

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #28778:
URL: https://github.com/apache/airflow/issues/28778#issuecomment-1374370521

   Thanks for opening your first issue here! Be sure to follow the issue template!
   


-- 
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