Skip to content

Commit

Permalink
update data_updated_timestamp for polled provider that has no new rep…
Browse files Browse the repository at this point in the history
…orts to be downloaded (#5205)
  • Loading branch information
lcouzens authored Jul 19, 2024
1 parent 45d8e31 commit 682edb8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions koku/masu/processor/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@ def get_report_files( # noqa: C901
WorkerCache().remove_task_from_cache(cache_key)
if not result:
LOG.info(log_json(tracing_id, msg="no report files processed, skipping summary", context=context))
# update provider even when there are no new reports so we continue polling
if provider := Provider.objects.filter(uuid=provider_uuid).first():
provider.set_data_updated_timestamp()
return None

return report_meta
Expand Down

0 comments on commit 682edb8

Please sign in to comment.