jsforce: How to set pollTimeout for Bulk job using alternative api method?
these alternative methods were provided in the documentation for doing a bulk job, but it doesn’t say how to set the poll timeout option for these method.
conn.sobject("Account").insertBulk(accounts, function(err, rets) {
// ...
});
conn.sobject("Account").bulkload("insert").execute(accounts, function(err, rets) {
// ...
});
Here is a quick link to the docs: Bulk API
I’m getting a pollingTimeout error even though my job is very short. I would like to increase the pollTimeout using these methods.
Even with the polling timeout, the records are all successfully added to salesforce. I just have to go and check manually.
Thank you!
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Reactions: 2
- Comments: 16 (1 by maintainers)
You can use the
bulk
object in the connection objet to change the polling timeout/interval of bulk API access.Actually,
SObject#insertBulk()
orSObject#bulkload()
is the shortcut to theconn.bulk.load()
.Old but was related and still could use some clarification. I have a batch size of 5000 and
this.connection.bulk.pollTimeout = 1800000
without any pollInterval set. I am getting a polling timeout error and wondering if I need to add a pollInterval variable as well and how would one know at what value to set the pollInterval?Thanks
Can we get some explanation on this?