Increased default timeout to 30 minutes
This commit is contained in:
parent
6b3cd659cb
commit
c9f9616323
1 changed files with 7 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue