- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to know when a contact batch has completed.
Dec 7, 2020 4:25 PM
Hi,
We're using hubspot-php to upload a batch of (new) contacts. We also need to add email subscriptions to new contacts, and there is sometimes some additional details that need to get added to new contacts.
The problem is that batch contact uploads are async, so they don't complete immediately, and I don't see a method to know when the batch has completed.
Typically these batches will have anywhere from 1 to 30 or 50 new contacts.
The plan is to run the "updater" process hourly (that's what we've been doing with our old email marketing provider).
My first thought as a work-around is to run the email subscriptions and additional data processing on the half-hour with the contact uploads on the hour. Giving the batches 30 minutes to complete. From my testing with a developer portal with batches of 100 the batches look to be processing in a minute or so. I think this should work, waiting the 30 minutes, but I'm thinking I should build in a test to see if the last contact in the batch exists to be sure...so we aren't causing errors.
So, is there a method to know if the batch completes? I see there's a webhook for when new contacts are created, but that's much more complicated than it should be.
Thanks,
Jay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content