Tweak how backfill task is launched

per upstream changes
This commit is contained in:
Lance Edgar 2023-01-14 02:20:21 -06:00
parent 80989cc84f
commit 23358d9c5d

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2022 Lance Edgar # Copyright © 2010-2023 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -121,7 +121,10 @@ class LuigiTaskView(MasterView):
start_date = app.parse_date(data['start_date']) start_date = app.parse_date(data['start_date'])
end_date = app.parse_date(data['end_date']) end_date = app.parse_date(data['end_date'])
try: try:
self.luigi_handler.launch_backfill_task(task, start_date, end_date) self.luigi_handler.launch_backfill_task(task, start_date, end_date,
keep_config=False,
email_if_empty=True,
wait=False)
except Exception as error: except Exception as error:
log.warning("failed to launch backfill task: %s", task, log.warning("failed to launch backfill task: %s", task,
exc_info=True) exc_info=True)