ink pot monkey ✒🐒
ink pot monkey ✒🐒
CDCloudflare Developers
Created by ink pot monkey ✒🐒 on 5/31/2024 in #workers-help
Does ctx.waitUntil work with hyperdrive?
clarification: by testing locally I mean hitting the worker url from my machine
3 replies
CDCloudflare Developers
Created by ink pot monkey ✒🐒 on 5/31/2024 in #workers-help
Does ctx.waitUntil work with hyperdrive?
Actually further testing shows that even testing locally any database updates I try to do with ctx.waitUntil never complete. Success:
await sql`INSERT INTO payment_logs(user_id) VALUES (1111);`;
await sql`INSERT INTO payment_logs(user_id) VALUES (1111);`;
Failure:
ctx.waitUntil(sql`INSERT INTO payment_logs(user_id) VALUES (1111);`);
ctx.waitUntil(sql`INSERT INTO payment_logs(user_id) VALUES (1111);`);
3 replies