membershipworks/api: Schedule scraping task
This commit is contained in:
parent
dc648d6770
commit
5ddd0e68ac
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user