Increased default timeout to 30 minutes

This commit is contained in:
Joel Collins 2019-11-06 22:27:39 +00:00
parent 6b3cd659cb
commit c9f9616323

View file

@ -34,7 +34,12 @@ export default {
pollInterval: { pollInterval: {
type: Number, type: Number,
required: false, required: false,
default: 500 default: 0.5
},
pollTimeout: {
type: Number,
required: false,
default: 1800
}, },
submitLabel: { submitLabel: {
type: String, type: String,
@ -72,7 +77,7 @@ export default {
// Start the store polling TaskId for success // Start the store polling TaskId for success
this.taskRunning = true this.taskRunning = true
// Return the poll-task promise (starts polling the task) // Return the poll-task promise (starts polling the task)
return this.pollTask(this.taskId, null, null) return this.pollTask(this.taskId, this.pollTimeout, this.pollInterval)
}) })
.then(response => { .then(response => {
// Do something with the final response // Do something with the final response