django-mjml
django-mjml copied to clipboard
Add optional random server selection for TCP and HTTP backends
Introduced a new setting MJML_TCPSERVERS_RANDOM and MJML_HTTPSERVERS_RANDOM for server selection, allowing random server selection to be toggled. This makes it possible to either use the servers in order or randomly.
-
Both settings default to True, enabling random selection by default, but can be set to False to maintain a fixed order of servers.
-
Refactored the
mjml/tools.pyfile to shuffle the servers list based on the new settings for both TCP and HTTP backends.