Rename task and function for clarity

This doesn't just relate to templated letters, it's actually just
checking that there are not any letters still in created that should not
be. This change to the naming makes it more accurate and therefore easy
to understand
This commit is contained in:
David McDonald
2021-02-10 14:58:49 +00:00
parent 3c0e609cc9
commit 1b9d8252ec
3 changed files with 9 additions and 9 deletions

View File

@@ -214,9 +214,9 @@ def check_precompiled_letter_state():
)
@notify_celery.task(name='check-templated-letter-state')
@notify_celery.task(name='check-if-letters-still-in-created')
@statsd(namespace="tasks")
def check_templated_letter_state():
def check_if_letters_still_in_created():
letters = dao_old_letters_with_created_status()
if len(letters) > 0: