Murder Chicken
CDCloudflare Developers
•Created by Murder Chicken on 9/27/2024 in #workers-help
RPC, `using`, Experimental Wrangler and Observability
Are you awaiting the method call?
9 replies
CDCloudflare Developers
•Created by Murder Chicken on 9/27/2024 in #workers-help
RPC, `using`, Experimental Wrangler and Observability
In my use-case, I'm using Service Bindings from within a
scheduled
worker... IIRC they mention something about being limited to fetch
handlers but it seems to work for me 🤷♂️9 replies
CDCloudflare Developers
•Created by Murder Chicken on 9/27/2024 in #workers-help
RPC, `using`, Experimental Wrangler and Observability
So far, the approach I used above seems to work. The only odd behavior I'm seeing is duplicate log entries on the Service Worker housing the RPC methods.
9 replies
CDCloudflare Developers
•Created by Murder Chicken on 9/27/2024 in #workers-help
RPC, `using`, Experimental Wrangler and Observability
Unclear but it seems to deploy and work whereas use of
using
requires a different wrangler so it understands how to transpile using
statements into Symbol.dispose
statements.9 replies
CDCloudflare Developers
•Created by Murder Chicken on 9/27/2024 in #workers-help
RPC, `using`, Experimental Wrangler and Observability
I'm attempting to solve this without the experimental wrangler using the following code:
... and executing the method like this:
However, I'm seeing odd behavior in that the RPC methods seem to be being called twice when I view the
SERVICE
worker's logs. When I tried an implementation of the using
method, I did not see this. Not sure what's happening but anything that might cause RPC methods to be called multiple times using a single invocation of the method?9 replies
CDCloudflare Developers
•Created by Shravan on 9/11/2024 in #workers-discussions
I seem to have issues compiling with
Were you ever able to determine if there was a way to do this through flags?
6 replies
CDCloudflare Developers
•Created by Murder Chicken on 9/26/2024 in #coding-help
If I have two "headless" workers (one
Managed to figure this out. For anyone interested: https://discordapp.com/channels/595317990191398933/1288258448626290771
2 replies
CDCloudflare Developers
•Created by Murder Chicken on 9/24/2024 in #workers-help
Serialized RPC arguments or return values are limited to 1MiB
For anyone who stumbles into this thread... I managed to figure this out (thanks Cursor IDE).
Worker making the RPC call with a large payload...
Consumer worker with RPC method...
5 replies
CDCloudflare Developers
•Created by Murder Chicken on 9/26/2024 in #coding-help
If I have two "headless" workers (one
The data structure is simple (just a lot of elements) and looks like this:
2 replies
CDCloudflare Developers
•Created by Murder Chicken on 9/24/2024 in #workers-help
Serialized RPC arguments or return values are limited to 1MiB
Also, the documentation notes that the Stream API is only available within a
fetch
event. Do I have this or other options within a scheduled
event?5 replies
CDCloudflare Developers
•Created by Murder Chicken on 9/24/2024 in #workers-help
Serialized RPC arguments or return values are limited to 1MiB
@Purple Blob thanks for the input. Are you aware of any code examples of how to do with with RPC service bindings?
5 replies