Seekerdasbatatas
Seekerdasbatatas
CDCloudflare Developers
Created by movaid7 on 10/31/2024 in #workflows-beta
I haven't seen this mentioned anywhere
there's "waitingForPause" state tho
7 replies
CDCloudflare Developers
Created by movaid7 on 10/31/2024 in #workflows-beta
I haven't seen this mentioned anywhere
When it's "pause" it's actually paused and grace period don't apply
7 replies
CDCloudflare Developers
Created by movaid7 on 10/31/2024 in #workflows-beta
I haven't seen this mentioned anywhere
There's some grace period but after some time, they start to not count towards the limit because its in a "Waiting" status
7 replies
CDCloudflare Developers
Created by DiamondDragon on 10/30/2024 in #workflows-beta
I'm getting a `Type instantiation is
can you give us an minimum example to repro this, please?
2 replies
CDCloudflare Developers
Created by i40west on 10/29/2024 in #workflows-beta
What is the function passed to `step.do`
step.do can return anything that is v8 serializable
32 replies
CDCloudflare Developers
Created by i40west on 10/29/2024 in #workflows-beta
What is the function passed to `step.do`
can you give us a minimum reproducible example so we can test this out and/or help you?
32 replies
CDCloudflare Developers
Created by Seekerdasbatatas on 10/28/2024 in #workflows-beta
You are only charged for CPU cycles **
for now, as a workaround, you can see it in the workers page
2 replies
CDCloudflare Developers
Created by jordanfinners on 10/28/2024 in #workflows-beta
Hey, been using workflows over the
8 replies
CDCloudflare Developers
Created by jordanfinners on 10/28/2024 in #workflows-beta
Hey, been using workflows over the
let me know if you have more questions 🙂
8 replies
CDCloudflare Developers
Created by jordanfinners on 10/28/2024 in #workflows-beta
Hey, been using workflows over the
The output that is displayed in the UI for each step is awesome. But is it possible to copy a non-truncated version of it? Also, would it be possible to mark some as secret so it's not available?
At the moment, it's not possible, but it's something we might consider to do in a near future
Where do the console logs go? It looks like they appear in whatever triggered the workflows but a little hard to tie it all together
You should be able to npx wrangler tail the script that the Workflow is implemented with. Note that, at the moment, the logs are only flushed at the end of the instance (it's a workerd limitation that is being resolved)
Is there any advice for unit testing?
At the moment you probably can't run the workflow inside of unit tests (you can probably create stubs for step.do and step.sleep yourself if you need to). However, you can extract the functions from the step.do calls and test them yourself with vitest-pool-workers
Is it possible to increase the size limit returned by each step?
Not at the moment, you can use R2/KV if you need bigger values and just return the key 🙂
Are there any limits to the code running as part of the workflows outside of a step?
It should be deterministic, state outside of steps should be build without side-effects: https://developers.cloudflare.com/workflows/build/rules-of-workflows/
8 replies