in django_airavata/apps/workspace/static/django_airavata_workspace/js/web-components/store.js [522:555]
applyBatchQueueResourcePolicy({ commit, getters }) {
if (getters.batchQueueResourcePolicy) {
const crs =
getters.experiment.userConfigurationData
.computationalResourceScheduling;
const totalCPUCount = Math.min(
crs.totalCPUCount,
getters.batchQueueResourcePolicy.maxAllowedCores
);
if (totalCPUCount !== crs.totalCPUCount) {
commit("updateTotalCPUCount", {
totalCPUCount,
});
}
const nodeCount = Math.min(
crs.nodeCount,
getters.batchQueueResourcePolicy.maxAllowedNodes
);
if (nodeCount !== crs.nodeCount) {
commit("updateNodeCount", {
nodeCount,
});
}
const wallTimeLimit = Math.min(
crs.wallTimeLimit,
getters.batchQueueResourcePolicy.maxAllowedWalltime
);
if (wallTimeLimit !== crs.wallTimeLimit) {
commit("updateWallTimeLimit", {
wallTimeLimit,
});
}
}
},