Skip to content

Commit

Permalink
[UPDATED]- HPC quota limits and slurm estimate times
Browse files Browse the repository at this point in the history
  • Loading branch information
ndasanayaka committed Sep 30, 2024
1 parent cb50e4e commit 2d4349d
Show file tree
Hide file tree
Showing 9 changed files with 374 additions and 132 deletions.
30 changes: 24 additions & 6 deletions src/api/DeconvolutionAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,27 @@ export default {

},

/* async estimate_devices(deconinfo) {
const { data } = await request.get(`${Vue.prototype.$Config.endpoints.wiener}/api/execute/estimateDevices`, {
params : {
deconinfo: btoa(JSON.stringify(deconinfo))
async cancel_estimate() {
const { data } = await request.get(`${Vue.prototype.$Config.endpoints.wiener}/api/execute/estimateCancel`);
return data
},

async queue_time(nodes, mem, gpus, partition) {
const { data } = await request.get(`${Vue.prototype.$Config.endpoints.wiener}/api/execute/queueTime`,{
params: {
nodes: nodes,
mem: mem,
gpus: gpus,
partition: partition
}
})
});
return data
}, */
},

async user_limits() {
const { data } = await request.get(`${Vue.prototype.$Config.endpoints.wiener}/api/execute/userLimits`);
return data
},

// execute
async execute_microvolution(output, instances, mem, devices, executioninfo, jobs, is_test=false, is_estimate, is_cudaDecon) {
Expand Down Expand Up @@ -96,6 +109,11 @@ export default {
let endpoint = `${Vue.prototype.$Config.endpoints.pref}`
// let apihost = /^(?:\w+\:\/\/)?([^\/]+)(.*)$/.exec(endpoint)[1]
let apihost = /^(?:\w+:\/\/)?([^/]+)(.*)$/.exec(endpoint)[1]
console.log("----run estimate api API call---")
let today = new Date();
let date = today.getFullYear()+'-'+(today.getMonth()+1)+'-'+today.getDate();
let time = today.getHours() + "-" + today.getMinutes() + "-" + today.getSeconds();
console.log(date+'_'+time)
const { data } = await request.get(_requestUrl, {
params: {
output: output,
Expand Down
6 changes: 6 additions & 0 deletions src/api/RemoteJobAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,10 @@ export default {
});
return data
},

async scratch_quota() {
const { data } = await request.get(`${Vue.prototype.$Config.endpoints.wiener}/api/execute/quota`);
return data
},

}
2 changes: 1 addition & 1 deletion src/components/DesktopManagerComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
apps: [],
flavours: [],
selectedApp: "",
selectedDesktop:"",
selectedDesktop:{label:'IPP Accelerated Desktop', value:'ipp_desktop'},
selectedFlavour: {},
walltime: 4,
copyFilesToScratch: true,
Expand Down
Loading

0 comments on commit 2d4349d

Please sign in to comment.