From 5ddd0e68ac7b408e18678547d2b7a89a7e4d1cb9 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Tue, 19 Dec 2023 13:25:40 -0500 Subject: [PATCH] membershipworks/api: Schedule scraping task --- membershipworks/apps.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/membershipworks/apps.py b/membershipworks/apps.py index 82a4464..c516041 100644 --- a/membershipworks/apps.py +++ b/membershipworks/apps.py @@ -7,8 +7,15 @@ def post_migrate_callback(sender, **kwargs): from cmsmanage.django_q2_helper import ensure_scheduled + from .tasks.scrape import scrape_membershipworks from .tasks.ucsAccounts import sync_accounts + ensure_scheduled( + "Scrape MembershipWorks Data", + scrape_membershipworks, + schedule_type=Schedule.HOURLY, + ) + ensure_scheduled( "Sync UCS Accounts", sync_accounts,