giannistbs opened a new pull request, #51105:
URL: https://github.com/apache/airflow/pull/51105
This PR enables persistent storage in `AppriseHook` by initializing
`Apprise` with an `AppriseAsset` that uses `${AIRFLOW_HOME}/apprise_cache` as
the storage path. This change allows Apprise to persist session and login
information, reducing the need for repeated authentications and mitigating
rate-limiting issues, particularly with services like Matrix.
The cache directory at `${AIRFLOW_HOME}/apprise_cache` is automatically
created if it does not exist, so no additional setup or prerequisites are
required.
### Tests
- Added a unit test to verify that persistent storage is properly enabled in
the hook.
### Related Issues
Closes: #51102
### Checklist
- [x] Code follows Airflow’s style and guidelines
- [x] Tests have been added
- [x] No backward-incompatible changes introduced
--
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]