While the docs says the maximum value for timeout of hubspot.fetch can be set to 120000 (2 minutes), hubspot.fetch still timeouts around the 30-second mark.
Although offloading long running tasks do make sense, I’m trying avoid adding any architecture complexity unless absolutely required.
The focus here is more about why a documented feature does not work and whether there is any other step needed to apply it.
I do notice the 30-second limit does not apply when while it is in local development mode via hs dev.
When hubspot.fetch times out in production, I can see a different console error as following:
Unhandled Promise Rejection Error: Request for https://app-ap1.hubspot.com/api/crm-extensibility/execution/internal/v3/proxy failed with status 0. Request timeout