Warren
CDCloudflare Developers
•Created by Murder Chicken on 9/24/2024 in #workers-help
Serialized RPC arguments or return values are limited to 1MiB
Thank you this is very helpful!
17 replies
CDCloudflare Developers
•Created by Murder Chicken on 9/24/2024 in #workers-help
Serialized RPC arguments or return values are limited to 1MiB
All good! Do you mind elaborating on the “should be transparent to the user” part? That is, we should not have to think about this?
17 replies
CDCloudflare Developers
•Created by Murder Chicken on 9/24/2024 in #workers-help
Serialized RPC arguments or return values are limited to 1MiB
Do you mind sharing some example code of how you do this? 😀
I wonder if I can adapt this to my problem, I suspect it’s a little different because I’m using Cloudflare Workflows and they try to save the 1MiB return value from each step of the workflow hmm
17 replies
CDCloudflare Developers
•Created by Murder Chicken on 9/24/2024 in #workers-help
Serialized RPC arguments or return values are limited to 1MiB
hey I just want to revive this discussion on a related note.
instead of streaming, I'm trying to modify the work I'm doing within the Worker to ensure that the return value is smaller than the 1MiB limit before returning it.
I use the above, but I notice that the value returned and the actual value shown when an error is thrown can be quite different.
How can I reliably check what is the size of a return value before returning it?
Thanks in advance!
@DaniFoldi
17 replies
CDCloudflare Developers
•Created by Hello, I’m Allie! on 12/7/2024 in #workflows-beta
On your first point, not necessarily,
I'm not sure I fully understand, if my workflow runs into the subrequest error and that step fails and is retried, the new retry gets (1) a new 1k request; (2) access to any state that was saved from the first try that was before the 1k request limit is hit?
3 replies
CDCloudflare Developers
•Created by Hello, I’m Allie! on 12/7/2024 in #workflows-beta
On your first point, not necessarily,
is restart the same as retry? or am I misunderstanding something
3 replies
CDCloudflare Developers
•Created by movaid7 on 10/31/2024 in #workflows-beta
I haven't seen this mentioned anywhere
Got it thanks!
10 replies
CDCloudflare Developers
•Created by movaid7 on 10/31/2024 in #workflows-beta
I haven't seen this mentioned anywhere
is the main difference between
sleep
and setTimeout
that sleeping will reduce concurrency, but not setTimeout?10 replies
CDCloudflare Developers
•Created by elithrar on 12/4/2024 in #workflows-beta
Is this in prod? Local dev? What version
while I got you here, could I seek clarifications on what happens to payloads after they are passed through RPC?
I passed something that is of the type
Date | null
and it seems like, if it’s a date, I actually lose the methods that would otherwise exist.
should I assume that everything gets serialized to string and I will need to rehydrate them into objects? thanks!3 replies
CDCloudflare Developers
•Created by elithrar on 12/4/2024 in #workflows-beta
Is this in prod? Local dev? What version
my bad, I think it's working now. maybe something was out of sync between what I thought I deployed and what I actually deployed. so sorry for the false alarm!
3 replies