You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmm i see, not sure we can easily reuse the current OpenNext ALS without some breaking change. Reusing it probably means that we'd have to initialize the ALS on every wrapper and that's not something that i'd like to do.
Maybe it would make sense to define the cloudflare context inside the wrapper directly ?
Another option would be to create one ALS only if you can't find the already defined one (i.e. (globalThis as any)[Symbol.for("__cloudflare-context__")])
There is a bug when using the cloudflare wrappers (
cloudflare-node
andcloudflare-edge
)It will manifest with the following log:
The root cause is that we share
ctx.waitUntil()
onglobalThis.openNextWaitUntil
:The problem here is that
ctx.waitUntil
is request specific butglobalThis
is shared across requests. We should add it to ALS instead.I hope I'll get to fixing this later today, otherwise in the next few days.
Edit: the warning has been removed from workerd in cloudflare/workerd#3388, you need to run the e2e with workerd v1.20250121.0 to see the warning
The text was updated successfully, but these errors were encountered: