Skip to content

Commit

Permalink
Changed logging statements in backfill to info so they will show up i…
Browse files Browse the repository at this point in the history
…n AWS logging (#2248) (#2249)

Co-authored-by: Josh Stegmaier <104993387+joshuastegmaier@users.noreply.github.com>
  • Loading branch information
rasarkar and joshuastegmaier authored Jan 26, 2024
1 parent f1801a9 commit 1a4dd85
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions concordia/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def retired_total_report():

@celery_app.task
def backfill_by_date(date, days):
logger.debug("Backfilling daily data for %s ", date)
logger.info("Backfilling daily data for %s ", date)
start = date - ONE_DAY

q_accepted = Q(
Expand Down Expand Up @@ -463,12 +463,14 @@ def backfill_by_date(date, days):

if days >= 0:
backfill_by_date.delay(start, days - 1)
else:
logger.info("Backfilling daily data finished")


@celery_app.task
def backfill_daily_data(start, days):
date = timezone.make_aware(datetime.datetime(**start))
logger.debug("Backfilling daily data for the %s days before %s", days, date)
logger.info("Backfilling daily data for the %s days before %s", days, date)
backfill_by_date.delay(date - ONE_DAY, days - 1)


Expand Down

0 comments on commit 1a4dd85

Please sign in to comment.