membershipworks/api: Schedule scraping task

This commit is contained in:
Adam Goldsmith 2023-12-19 13:25:40 -05:00
parent dc648d6770
commit 5ddd0e68ac

View File

@ -7,8 +7,15 @@ def post_migrate_callback(sender, **kwargs):
from cmsmanage.django_q2_helper import ensure_scheduled from cmsmanage.django_q2_helper import ensure_scheduled
from .tasks.scrape import scrape_membershipworks
from .tasks.ucsAccounts import sync_accounts from .tasks.ucsAccounts import sync_accounts
ensure_scheduled(
"Scrape MembershipWorks Data",
scrape_membershipworks,
schedule_type=Schedule.HOURLY,
)
ensure_scheduled( ensure_scheduled(
"Sync UCS Accounts", "Sync UCS Accounts",
sync_accounts, sync_accounts,