1
0
Fork 0

tasks/clean_observations: Fix premature task termination in 'stage' environment

Skip the archival of old observations which just got deleted instead
of terminating the whole task at this point.

Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
merge-requests/861/head 1.23
Fabian P. Schmidt 2020-01-04 19:46:06 +01:00
parent 1635a14640
commit 538ea52c1a
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ def clean_observations():
if settings.ENVIRONMENT == 'stage':
if not obs.is_good:
obs.delete()
return
continue
if os.path.isfile(obs.payload.path):
archive_audio.delay(obs.id)