juanferreras
juanferreras
CDCloudflare Developers
Created by Seekerdasbatatas on 4/2/2025 in #workflows-beta
could you get me your account id please
I think this can be discarded now – I've done a bunch of changes, and mainly split workflow steps in smaller units of work (with less subrequests/parallel subrequests) and it's working a lot more reliably now. thanks Luis!
9 replies
CDCloudflare Developers
Created by Seekerdasbatatas on 4/2/2025 in #workflows-beta
could you get me your account id please
tried the parallelism again and it seems to work reliably haha – I think I'll make sure to add a lot of logs next time I see this issue to finally hunt it down
9 replies
CDCloudflare Developers
Created by Seekerdasbatatas on 4/2/2025 in #workflows-beta
could you get me your account id please
No description
9 replies
CDCloudflare Developers
Created by Seekerdasbatatas on 4/2/2025 in #workflows-beta
could you get me your account id please
that was unrelated to these runs though (e.g. it just caused a similar defect where I was seeing them timeout and had no clue what was going on, and I have the feeling that the upstream APIs were returning OK but something getting disconnected along the way or not awaiting). I wonder if my case of not really returning intermediate data (the async function just writes partial results in the DB already) might be giving me a different experience than intended
if (runFirst) {
const firstPromise = (async () => {
try {
await step.do("fetch-first-data", STEP_CONFIG, async () => {
...
} catch
...
})();
stepPromises.push(firstPromise);
}

await Promise.all(stepPromises);
if (runFirst) {
const firstPromise = (async () => {
try {
await step.do("fetch-first-data", STEP_CONFIG, async () => {
...
} catch
...
})();
stepPromises.push(firstPromise);
}

await Promise.all(stepPromises);
hmm seeing the code again makes me think there might be better ways to do that too
9 replies
CDCloudflare Developers
Created by Seekerdasbatatas on 4/2/2025 in #workflows-beta
could you get me your account id please
No description
9 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 1/16/2025 in #workers-for-platforms
You could probably go the Stackblitz
using https://developer.stackblitz.com/platform/api/javascript-sdk-vm#getfssnapshot you can embed an SDK with files you declare, run the build on changes like "start": "chokidar 'src/**/*.{js,ts,jsx,tsx}' -c 'pnpm run build' --debounce 1000 --initial", and then use await vm.getFsSnapshot() to get the contents of dist/**and upload that to the worker for platforms API (you can do much fancier things with the Web Container API but looks like you require licensing for commercial usage)
4 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 1/16/2025 in #workers-for-platforms
You could probably go the Stackblitz
No description
4 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 1/16/2025 in #workers-for-platforms
You could probably go the Stackblitz
Gotta admit that if somehow I can run wrangler deploy --dry-run --outdir dist – it'll be a much safer path to pursue
4 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 1/16/2025 in #workers-for-platforms
You could probably go the Stackblitz
hey HardlyWorkin! Thanks for the response. Initially I was going to use sandpack (codesandbox) – but typescript support and actually deploying to preview changes seemed to work pretty well (esp. to make sure what they build fit into how I intend to RPC to them via my dispatch worker) would you mind ellaborating on what'd be the stackblitz route? e.g. iframing/embeding their editor SDK and being able to get a built output programmatically?
4 replies