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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/actions.js +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudron",
3
- "version": "8.2.0",
3
+ "version": "8.2.1",
4
4
  "license": "MIT",
5
5
  "description": "Cloudron Commandline Tool",
6
6
  "type": "module",
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) {