Skip to content

Commit

Permalink
Schedule daily export of company data to HubSpot
Browse files Browse the repository at this point in the history
Call the LMS hubpost.export_companies_contract_billables daily.

We call it one hour after the refresh_hubpost_data task but there's no
need to synchronize between the two, we just need to call them both
regularly.
  • Loading branch information
marcospri committed Jul 23, 2024
1 parent 7e99f0d commit 39f4565
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions h_periodic/lms_beat.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
"task": "lms.tasks.hubspot.refresh_hubspot_data",
"schedule": crontab(hour=13),
},
"refresh_hubspot_data": {
"task": "lms.tasks.hubspot.export_companies_contract_billables",
"schedule": crontab(hour=14),
},
"schedule_monthly_deal_report": {
"task": "lms.tasks.organization.schedule_monthly_deal_report",
"schedule": timedelta(minutes=15),
Expand Down

0 comments on commit 39f4565

Please sign in to comment.