forked from CGM_Public/pretix_original
Do not use redis cache at import time (#6321)
During our [2026-06-27 incident](https://pretix.eu/about/en/blog/20260630-pretix-hosted-outage/), we noticed that pretix is using redis at import time. This means that gunicorn and celery process were unable to start on servers who could currently not reach redis. This is kinda mitigated through auto-restart on systemd or docker level, but that's not really how it is supposed to work. Celery even has smart retry/reconnect logic that becomes pointless this way.
This commit is contained in:
@@ -1679,7 +1679,7 @@ class CountriesAndEUAndStates(CountriesAndEU):
|
||||
|
||||
class TaxRuleLineForm(I18nForm):
|
||||
country = LazyTypedChoiceField(
|
||||
choices=CountriesAndEUAndStates(),
|
||||
choices=lazy(lambda: CountriesAndEUAndStates(), CountriesAndEUAndStates),
|
||||
required=False
|
||||
)
|
||||
address_type = forms.ChoiceField(
|
||||
|
||||
Reference in New Issue
Block a user