mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Bump -utils to 55.0.0
This renames "delete_cache_keys_by_pattern" to match the new method name, which will also catch exceptions if Redis is down [1]. Note that this also includes a change to RecipientCSV [2], which has no effect because the new default is the same as the old behaviour. [1]: https://github.com/alphagov/notifications-utils/pull/949 [2]: https://github.com/alphagov/notifications-utils/pull/947/files#diff-a8a994bf655634f89dc7439880708b4ff0d780ac1bd8033827d8aaa2692a8e0fR373
This commit is contained in:
@@ -352,10 +352,10 @@ def platform_admin_returned_letters():
|
||||
|
||||
try:
|
||||
letter_jobs_client.submit_returned_letters(references)
|
||||
redis_client.delete_cache_keys_by_pattern(
|
||||
redis_client.delete_by_pattern(
|
||||
'service-????????-????-????-????-????????????-returned-letters-statistics'
|
||||
)
|
||||
redis_client.delete_cache_keys_by_pattern(
|
||||
redis_client.delete_by_pattern(
|
||||
'service-????????-????-????-????-????????????-returned-letters-summary'
|
||||
)
|
||||
except HTTPError as error:
|
||||
@@ -431,7 +431,7 @@ def clear_cache():
|
||||
patterns = list(itertools.chain(*groups))
|
||||
|
||||
num_deleted = sum(
|
||||
redis_client.delete_cache_keys_by_pattern(pattern)
|
||||
redis_client.delete_by_pattern(pattern)
|
||||
for pattern in patterns
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user