funny, the same command re-tried just now works. some glitch
funny, the same command re-tried just now works. some glitch

(workflow.not_found) Provided Workflow does not exist in production.env.WORKFLOW.get(id)? Error: instance.not_found). I've been unable to find a pattern for repro, except that it seems the codepath that invokes the workflow can successfully call get(id) later, even in a different instance of the worker; whereas some other codepath will always get instance.not_found. I'm using the same binding for the same worker with the same workflow id.wrangler types expected to generate types for workflows defined in wrangler.toml?restart()'ing an instance count to the 100 per 10 second liimit of the Maximum Workflow instance creation rate?console.log messages emitted during that workflow run.`
export abstract class AbstractWorkflow<T, R> extends WorkflowEntrypoint<Env, T> {
protected abstract getName(): string;
protected abstract validateInput(input: T): void;
protected abstract runStep(event: WorkflowEvent<T>, step: WorkflowStep): Promise<R>;
async run(event: WorkflowEvent<T>, step: WorkflowStep): Promise<unknown> {
console.log({
message: `${this.getName()} started.`,
level: "info",
event,
});
try {
this.validateInput(event.payload);
const output = await this.runStep(event, step);
console.log({
message: `${this.getName()} completed.`,
level: "info",
event,
output,
});
return output;
} catch (error) {
console.log({
message: `${this.getName()} failed.`,
level: "error",
event,
error,
});
throw error;
}
}
}
`
export abstract class AbstractWorkflow<T, R> extends WorkflowEntrypoint<Env, T> {
protected abstract getName(): string;
protected abstract validateInput(input: T): void;
protected abstract runStep(event: WorkflowEvent<T>, step: WorkflowStep): Promise<R>;
async run(event: WorkflowEvent<T>, step: WorkflowStep): Promise<unknown> {
console.log({
message: `${this.getName()} started.`,
level: "info",
event,
});
try {
this.validateInput(event.payload);
const output = await this.runStep(event, step);
console.log({
message: `${this.getName()} completed.`,
level: "info",
event,
output,
});
return output;
} catch (error) {
console.log({
message: `${this.getName()} failed.`,
level: "error",
event,
error,
});
throw error;
}
}
}
(workflow.not_found) Provided Workflow does not existenv.WORKFLOW.get(id)Error: instance.not_foundget(id)instance.not_foundwrangler typesKnown issue: Restarting a Workflow via the restart() method is not currently supported and will throw an exception (error).restart()