Add daily run of the skill loader for the 19.02 branch

pull/192/head^2
Chris Veilleux 2019-09-13 14:51:10 -05:00
parent ed76bf6c48
commit e1230a4e79
1 changed files with 8 additions and 0 deletions

View File

@ -80,6 +80,13 @@ def test_scheduler():
job_runner.run_job()
def load_19_02_skills():
"""Load the json file from the mycroft-skills-data repository to the DB"""
job_runner = JobRunner('load_skill_display_data.py --core-version 19.02')
job_runner.job_date = date.today() - timedelta(days=1)
job_runner.run_job()
def parse_core_metrics():
"""Copy rows from metric.core to de-normalized metric.core_interaction
@ -119,6 +126,7 @@ if os.environ['SELENE_ENVIRONMENT'] != 'prod':
schedule.every().day.at('00:00').do(partition_api_metrics)
schedule.every().day.at('00:05').do(update_device_last_contact)
schedule.every().day.at('00:10').do(parse_core_metrics)
schedule.every().day.at('00:15').do(load_19_02_skills())
# Run the schedule
while True: