You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2022/08/29 18:51:18 UTC
[airavata-django-portal] 06/11: AIRAVATA-3649 Only re-calculate queue settings when inputs or compute resource change
This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git
commit 6a11894c7656e851dae8b7b2bd761860051bcb7d
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Mon Aug 29 09:56:48 2022 -0400
AIRAVATA-3649 Only re-calculate queue settings when inputs or compute resource change
---
.../js/components/experiment/ExperimentEditor.vue | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/ExperimentEditor.vue b/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/ExperimentEditor.vue
index 42de7da7..4485733e 100644
--- a/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/ExperimentEditor.vue
+++ b/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/ExperimentEditor.vue
@@ -365,7 +365,12 @@ export default {
queueSettingsUpdate
);
}, 500),
- async experimentChanged() {
+ experimentInputsChanged() {
+ if (this.appInterface.queueSettingsCalculatorId) {
+ this.calculateQueueSettings();
+ }
+ },
+ resourceHostIdChanged() {
if (this.appInterface.queueSettingsCalculatorId) {
this.calculateQueueSettings();
}
@@ -377,11 +382,19 @@ export default {
},
localExperiment: {
handler() {
- this.experimentChanged();
this.edited = true;
},
deep: true,
},
+ "experiment.experimentInputs": {
+ handler() {
+ this.experimentInputsChanged();
+ },
+ deep: true,
+ },
+ "experiment.userConfigurationData.computationalResourceScheduling.resourceHostId": function () {
+ this.resourceHostIdChanged();
+ },
},
};
</script>