cloudron 8.2.0 → 8.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/actions.js +5 -0
package/package.json
CHANGED
package/src/actions.js
CHANGED
|
@@ -102,6 +102,11 @@ async function stopActiveTask(app, options) {
|
|
|
102
102
|
const request = createRequest('POST', `/api/v1/tasks/${app.taskId}/stop`, options);
|
|
103
103
|
const response = await request.send({});
|
|
104
104
|
if (response.status !== 204) throw `Failed to stop active task: ${requestError(response)}`;
|
|
105
|
+
|
|
106
|
+
if (!options.wait) return;
|
|
107
|
+
|
|
108
|
+
const result = await waitForTask(app.taskId, options);
|
|
109
|
+
if (result.error) throw new Error(`Stop active task failed: ${result.error.message}`);
|
|
105
110
|
}
|
|
106
111
|
|
|
107
112
|
function saveCwdAppId(appId, manifestFilePath) {
|