def handle(self, *args, **options): start = time.time() start_date = datetime.datetime(day=1, month=9, year=2018, tzinfo=pytz.utc) end_date = datetime.datetime(day=31, month=12, year=2018, tzinfo=pytz.utc) for day_of_logs in make_daterange(start_date, end_date): print(day_of_logs) load_shown_rationales_from_ltievent_logs(day_of_logs) print("Completed loading shown rationales") print("Took {:.2f} seconds".format(time.time() - start))
def handle(self, *args, **options): start = time.time() start_date = datetime.datetime(day=1, month=9, year=2018, tzinfo=pytz.utc) end_date = datetime.datetime(day=24, month=1, year=2019, tzinfo=pytz.utc) for day_of_logs in make_daterange(start_date, end_date): print(day_of_logs) populate_answer_start_time_from_ltievent_logs(day_of_logs) print("Completed populating datetime_start for Answer objects") print("Took {:.2f} seconds".format(time.time() - start))
def handle(self, *args, **options): start = time.time() start_date = datetime.datetime(day=15, month=8, year=2018, tzinfo=pytz.utc) end_date = datetime.datetime(day=31, month=5, year=2019, tzinfo=pytz.utc) event_type = options["event_type"][0] for day_of_logs in make_daterange(start_date, end_date): LOGGER.info(day_of_logs) populate_answer_start_time_from_ltievent_logs_task( day_of_logs=day_of_logs, event_type=event_type) LOGGER.info("Completed populating datetime_start for Answer objects") LOGGER.info("Took {:.2f} seconds".format(time.time() - start))