jason
CDCloudflare Developers
•Created by jason on 9/6/2024 in #workers-discussions
Thanks @FlikTeoh, totally agree the docs
Compatibility date change worked, now getting the object back from the RPC call. Thanks for your help, it's much appreciated.
10 replies
CDCloudflare Developers
•Created by jason on 9/6/2024 in #workers-discussions
Thanks @FlikTeoh, totally agree the docs
The
env
is being accessed in a CF worker that is a queue consumer, here's the code:
As you can see the worker has a fetch handler and a Queue consumer handler, which is passed env
from the Queue.
The output of the console.log
line for env
is:
Thanks for your help so far, it's much appreciated.10 replies
CDCloudflare Developers
•Created by jason on 9/6/2024 in #workers-discussions
Thanks @FlikTeoh, totally agree the docs
Thanks for the response @FlikTeoh, here's what I tried...
here's the code I'm using to invoke the worker via RPC:
The service binding definition:
but I get this error:
TypeError: env.jobsAiGateway.getTargetRoleAnalyser is not a function
And the code in the jobsAiGateway worker is:
Not sure what I'm doing wrong, any pointers would be greatly appreciated.10 replies