Open Ernxst opened 5 months ago
Can you try the latest? We might've pushed some changes.
Upgraded to 0.0.345
and now interestingly with worker B - a WorkerEntrypoint
- and sorker A a exported object - which has a binding to B - updates to worker B are reflected in the logs when invoking A, but updates to A aren't seen
@Ernxst Can you share the step to reproduce this?
Hey @jayair - made another repro with 0.0.360
(newer versions aren't working for me - will file an issue).
sst dev
WorkerA
using its url (e.g., in Postman, cURL etc.)sst dev
WorkerA
WorkerA
using its url (e.g., in Postman, cURL etc.)sst dev
- the log statements are still the sameInstead of changing the log, you can also change the response returned - invoking WorkerA
again still returns the old value.
Changing the log statement in WorkerB
and invoking WorkerA
again shows the updated WorkerB log in the terminal; changing the return value of WorkerB#sayHello
and invoking WorkerA
again will also use the updated return value.
Relating to
#321
, it seems live workers do not work when calling other RPC workers (sst v0.0.330).Steps to reproduce:
sst install
)sst dev
packages/functions/src/workerA.ts
WorkerA
The corresponding log statement is not present in the terminal where
sst dev
is running, hence, I can only assume the request wasn't proxied to my machine and it invoked the deployed (now older) version instead.WorkerA
callsWorkerB
via workers RPC - I see live changes to my workers after removing the call toWorkerB
. Assuming this is a bug and gets fixed, am I right in assuming that making a change inWorkerB
will not be reflected when invokingWorkerA
, since it's called over RPC, instead of HTTP?Interestingly, when calling the
fetch
method ofWorkerB
instead, both workers are live (I observe changes made to either worker).