Commit 31bb6385 by Jonathan Thomas

Export update frequency moving form 2.5 seconds to 1.0 seconds, and look at more…

Export update frequency moving form 2.5 seconds to 1.0 seconds, and look at more statuses (pending, preparing, in-progress, and finalizing)
parent 8d896585
......@@ -213,7 +213,10 @@ export default createStore({
return state.projects.filter(project => project.thumbnail).sort((a, b) => b.id - a.id)
},
activeExports: state => {
return state.exports.filter(e => e.status == "in-progress" || e.status == "pending").sort((a, b) => b.id - a.id)
return state.exports.filter(e => e.status == "preparing" ||
e.status == "pending" ||
e.status == "in-progress" ||
e.status == "finalizing").sort((a, b) => b.id - a.id)
}
},
actions: {
......
......@@ -63,7 +63,7 @@ export default {
this.addError(err.response.data)
await this.$router.push(`/`)
}
this.exportPollInterval = setInterval(this.pollForExports, 2500)
this.exportPollInterval = setInterval(this.pollForExports, 1000)
},
unmounted() {
// Update project thumbnail
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment