Skip to content

Commit bb9f1c3

Browse files
committed
Prevent multiple actions from running simultaneously
1 parent eaa2bcb commit bb9f1c3

17 files changed

+63
-38
lines changed

webui/src/js/utils/aux-image-pusher.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright (c) 2021, Oracle and/or its affiliates.
3+
* Copyright (c) 2021, 2022, Oracle and/or its affiliates.
44
* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
55
*/
66
'use strict';
@@ -14,7 +14,7 @@ function(ImageRegistryActionsBase, project, wktConsole, i18n, projectIo, dialogH
1414
}
1515

1616
async startPushAuxImage() {
17-
return this.callPushAuxImage();
17+
await this.executeAction(this.callPushAuxImage);
1818
}
1919

2020
async callPushAuxImage(options) {

webui/src/js/utils/image-pusher.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright (c) 2021, Oracle and/or its affiliates.
3+
* Copyright (c) 2021, 2022, Oracle and/or its affiliates.
44
* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
55
*/
66
'use strict';
@@ -14,7 +14,7 @@ function(ImageRegistryActionsBase, project, wktConsole, i18n, projectIo, dialogH
1414
}
1515

1616
async startPushImage() {
17-
return this.callPushImage();
17+
await this.executeAction(this.callPushImage);
1818
}
1919

2020
async callPushImage(options) {

webui/src/js/utils/ingress-controller-installer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright (c) 2021, Oracle and/or its affiliates.
3+
* Copyright (c) 2021, 2022, Oracle and/or its affiliates.
44
* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
55
*/
66
'use strict';
@@ -14,7 +14,7 @@ function(IngressActionsBase, project, wktConsole, k8sHelper, i18n, dialogHelper,
1414
}
1515

1616
async startInstallIngressController() {
17-
return this.callInstallIngressController();
17+
await this.executeAction(this.callInstallIngressController);
1818
}
1919

2020
async callInstallIngressController(options) {

webui/src/js/utils/ingress-controller-uninstaller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright (c) 2021, Oracle and/or its affiliates.
3+
* Copyright (c) 2021, 2022, Oracle and/or its affiliates.
44
* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
55
*/
66
'use strict';
@@ -14,7 +14,7 @@ function(IngressActionsBase, project, wktConsole, k8sHelper, i18n, dialogHelper,
1414
}
1515

1616
async startUninstallIngressController() {
17-
return this.callUninstallIngressController();
17+
await this.executeAction(this.callUninstallIngressController);
1818
}
1919

2020
async callUninstallIngressController(options) {

webui/src/js/utils/ingress-routes-updater.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright (c) 2021, Oracle and/or its affiliates.
3+
* Copyright (c) 2021, 2022, Oracle and/or its affiliates.
44
* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
55
*/
66
'use strict';
@@ -17,7 +17,7 @@ function(IngressActionsBase, project, wktConsole, k8sHelper, i18n, projectIo, di
1717
}
1818

1919
async startIngressRoutesUpdate() {
20-
return this.callIngressRoutesUpdate();
20+
await this.executeAction(this.callIngressRoutesUpdate);
2121
}
2222

2323
async callIngressRoutesUpdate(options) {

webui/src/js/utils/k8s-domain-deployer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright (c) 2021, Oracle and/or its affiliates.
3+
* Copyright (c) 2021, 2022, Oracle and/or its affiliates.
44
* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
55
*/
66
'use strict';
@@ -18,7 +18,7 @@ function (K8sDomainActionsBase, project, wktConsole, i18n, projectIo, dialogHelp
1818
}
1919

2020
async startDeployDomain() {
21-
return this.callDeployDomain();
21+
await this.executeAction(this.callDeployDomain);
2222
}
2323

2424
async callDeployDomain(options) {

webui/src/js/utils/k8s-domain-status-checker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright (c) 2021, Oracle and/or its affiliates.
3+
* Copyright (c) 2021, 2022, Oracle and/or its affiliates.
44
* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
55
*/
66
'use strict';
@@ -16,7 +16,7 @@ function (K8sDomainActionsBase, project, wktConsole, i18n, projectIo, dialogHelp
1616
}
1717

1818
async startCheckDomainStatus() {
19-
return this.callCheckDomainStatus();
19+
await this.executeAction(this.callCheckDomainStatus);
2020
}
2121

2222
async callCheckDomainStatus() {

webui/src/js/utils/k8s-domain-undeployer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright (c) 2021, Oracle and/or its affiliates.
3+
* Copyright (c) 2021, 2022, Oracle and/or its affiliates.
44
* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
55
*/
66
'use strict';
@@ -16,7 +16,7 @@ function (K8sDomainActionsBase, project, wktConsole, i18n, projectIo, dialogHelp
1616
}
1717

1818
async startUndeployDomain() {
19-
return this.callUndeployDomain();
19+
await this.executeAction(this.callUndeployDomain);
2020
}
2121

2222
async callUndeployDomain(options) {

webui/src/js/utils/k8s-helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright (c) 2021, Oracle and/or its affiliates.
3+
* Copyright (c) 2021, 2022, Oracle and/or its affiliates.
44
* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
55
*/
66
'use strict';
@@ -14,7 +14,7 @@ function(WktActionsBase, project, wktConsole, i18n, projectIo, dialogHelper, val
1414
}
1515

1616
async startVerifyClusterConnectivity() {
17-
return this.callVerifyClusterConnectivity();
17+
await this.executeAction(this.callVerifyClusterConnectivity);
1818
}
1919

2020
async callVerifyClusterConnectivity(options) {

webui/src/js/utils/wdt-preparer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright (c) 2021, Oracle and/or its affiliates.
3+
* Copyright (c) 2021, 2022, Oracle and/or its affiliates.
44
* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
55
*/
66
'use strict';
@@ -14,7 +14,7 @@ function(WdtActionsBase, project, wktConsole, i18n, projectIo, dialogHelper, val
1414
}
1515

1616
async startPrepareModel() {
17-
return this.callPrepareModel();
17+
await this.executeAction(this.callPrepareModel);
1818
}
1919

2020
async callPrepareModel(options) {

0 commit comments

Comments
 (0)