django-dbconn-retry
django-dbconn-retry copied to clipboard
feat: support MAX_DBCONN_RETRY_TIMES
Thank you for the package!
The dbconn_retry give up retry after retry once. Howerver, we found that sometimes retry more times could help!
This PR support to set MAX_DBCONN_RETRY_TIMES
in django.conf
, which is default to be 1
Best Wishes
Hi there! I somehow had notifications on for this repo and found myself reviewing your PR before noticing. I hope you don't mind my comments. Generally, I'd advise adding some lines of documentation. Otherwise, people won't know about this setting. Maybe consider writing a test as well, to validate the new behavior works as expected. Best Joe!
Thank you for your advice. I've add settings description in README.rst
and improve the test case. Please re-review.
😴