From d4033f5524cf81362d12589cead667440145d408 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Bournhonesque?= Date: Tue, 15 Aug 2023 11:03:54 +0200 Subject: [PATCH] chore: delay scheduled jobs relying on JSONL export JSONL dump is ready around 6.30AM every day, so delay scheduled jobs relying on this export so that it doesn't use out of date data. --- robotoff/scheduler/__init__.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/robotoff/scheduler/__init__.py b/robotoff/scheduler/__init__.py index 87442e7d71..204fd625ae 100644 --- a/robotoff/scheduler/__init__.py +++ b/robotoff/scheduler/__init__.py @@ -362,7 +362,7 @@ def run(): scheduler.add_job(save_insight_metrics, "cron", day="*", hour=1, max_instances=1) # This job refreshes data needed to generate insights. - scheduler.add_job(_update_data, "cron", day="*", hour="3", max_instances=1) + scheduler.add_job(_update_data, "cron", day="*", hour="8", max_instances=1) # This job updates the product insights state with respect to the latest PO # dump by: @@ -373,21 +373,21 @@ def run(): refresh_insights, "cron", day="*", - hour="4", + hour="9", max_instances=1, ) - # This job generates category insights using ElasticSearch from the last - # Product Opener data dump. + # This job generates category insights using matcher algorithm from the + # last Product Opener data dump. scheduler.add_job( - generate_insights, "cron", day="*", hour="4", minute=15, max_instances=1 + generate_insights, "cron", day="*", hour="10", minute=15, max_instances=1 ) scheduler.add_job( generate_quality_facets, "cron", day="*", - hour="5", + hour="11", minute=25, max_instances=1, )