veryfront 0.1.562 → 0.1.563
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/esm/deno.js
CHANGED
|
@@ -146,10 +146,10 @@ export class WorkflowExecutor {
|
|
|
146
146
|
const run = await this.config.backend.getRun(runId);
|
|
147
147
|
if (!run)
|
|
148
148
|
throw RESOURCE_NOT_FOUND.create({ detail: `Run not found: ${runId}` });
|
|
149
|
-
if (run.status !== "waiting" && run.status !== "pending") {
|
|
149
|
+
if (run.status !== "waiting" && run.status !== "pending" && run.status !== "running") {
|
|
150
150
|
throw ORCHESTRATION_ERROR.create({
|
|
151
151
|
detail: `Cannot resume workflow run "${runId}": current status is "${run.status}". ` +
|
|
152
|
-
`Only runs in "waiting" or "
|
|
152
|
+
`Only runs in "waiting", "pending", or "running" status can be resumed.`,
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
155
|
const workflow = this.workflows.get(run.workflowId);
|