Commit 9e5e6fb5 authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

Submitting job functionality fixed

parent 781b0eb1
......@@ -51,7 +51,7 @@
methods: {
createPlot () {
// function made available via requestHandling mixin
this.runAnalysis({name: 'compute-correlation', args: this.args})
this.runAnalysis({job_name: 'compute-correlation', args: this.args})
.then(response => {
console.log(response)
})
......
......@@ -2,11 +2,11 @@ import store from '../../store/store'
export default {
methods: {
async runAnalysis ({name, args}) {
async runAnalysis ({job_name, args}) {
function timeout (ms) {
return new Promise(resolve => setTimeout(resolve, ms))
}
const jobID = await store.getters.requestManager.createAnalysis({name, args})
const jobID = await store.getters.requestManager.createAnalysis({job_name, args})
let counter = 0
while (counter < 1000) {
await timeout(++counter * 200)
......
......@@ -35,8 +35,8 @@ export default class {
return this._axios.get('/data')
}
createAnalysis ({name, args}) {
return this._axios.post('/analytics', {name, args})
createAnalysis ({job_name, args}) {
return this._axios.post('/analytics', {job_name, args})
}
getAnalysisStatus ({jobID}) {
......
......@@ -14,7 +14,7 @@
handler: 'ada',
thisBaseURL: 'http://10.79.2.192:8080',
fractalisBaseURL: 'http://127.0.0.1:5000',
getAuth: () => {
getAuth () {
return credentials
}
})
......
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