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:
Ben Thorner
2022-02-22 10:47:04 +00:00
parent f827a825a1
commit 81d9c73543
7 changed files with 17 additions and 17 deletions

View File

@@ -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
)