Thanks for chiming in. Any other way to test my workflows w/ R2?
Thanks for chiming in. Any other way to test my workflows w/ R2?
--remote because workflows are not supported in remoteWORKFLOW.get(id) will return the finished instance? Also, does .restart() work for finished workflows too?

.restart() is not implemented yet
javascript debug terminal and it works fine. For some reason it doesn't w/ workflows - all of my breakpoints are "unbound"javascript debug terminal I have to run wrangler dev and then attach vs code to the process. The same works fine w/ workflows.instance.restart, instance.terminate, etc. and it says Not implemented yet. Any tips on that?--remote)--remoteconsole.logsexport class myclass extends WorkflowEntrypoint<Env, Params> {
async run(event: WorkflowEvent<Params>, step: WorkflowStep) {
}
}// Can access bindings on this.env
max_concurrent_instances config.--remote--remote--remoteWORKFLOW.get(id).restart().restart()javascript debug terminaljavascript debug terminalinstance.restartinstance.terminateNot implemented yetconsole.logexport class myclass extends WorkflowEntrypoint<Env, Params> {
async run(event: WorkflowEvent<Params>, step: WorkflowStep) {
}
}// Can access bindings on this.envmax_concurrent_instancesconst uploads = await Promise.all(
batch.map(async (image, index) => {
// Add 1 second sleep between uploads, but not before the first one
if (index > 0) {
await step.sleep(`delay-upload-${i}-${index}`, "1 second");
}
return step.do(
`process-image-${i}`,
{
retries: {
limit: 3,
delay: "5 seconds",
backoff: "exponential",
},
},
() => this.downloadAndUploadImage(image, orgId)
);
})
);