GuillaumeLakano
03/04/2023, 4:36 PMHardAtWork
03/04/2023, 5:00 PMGuillaumeLakano
03/04/2023, 5:09 PMGuillaumeLakano
03/04/2023, 5:10 PMGuillaumeLakano
03/04/2023, 5:10 PMGuillaumeLakano
03/04/2023, 5:12 PMHardAtWork
03/04/2023, 5:13 PMlocationHint
. I can do a manually mapping from colos to regions, but iirc, they aren't 100% stable yet.GuillaumeLakano
03/04/2023, 5:21 PMMisterNight
03/05/2023, 1:32 AMfunctions/helloworld.ts
, but I can't add my functions/counter.ts
and have it recognized by wrangler dev
MisterNight
03/05/2023, 1:32 AMMisterNight
03/05/2023, 1:36 AMLarry
03/05/2023, 3:51 AM./durable-objects
at the same level as ./functions
in my repo. Put the wrangler.toml file for the Worker/DO in the ./durable-objects
folder and run wrangler publish
from that folder whenever you update. I'm constantly forgetting that step and wondering why my smoke tests fail though so I keep promising myself I'm going to automate the publish as part of my Pages build but I have yet to do it.MisterNight
03/05/2023, 4:45 AMMisterNight
03/05/2023, 4:46 AMMisterNight
03/05/2023, 4:46 AMBeny
03/05/2023, 6:26 AM86400 seconds x 128 MB = 11059200
11059200 / 1000 (1GB) = 11059.2
11059.2 x 30 (30 days) = 331776
331776 / 1000000 (million) = 0.331776
0.331776 x $12.50 = $4.1472
Larry
03/05/2023, 2:17 PMLarry
03/05/2023, 3:23 PMwrangler pages dev
will pull from it though.HardAtWork
03/05/2023, 3:31 PMzegevlier
03/05/2023, 4:08 PMMisterNight
03/05/2023, 4:30 PMfunctions
folder and they will get compiled when you run wrangler pages dev
(from TS even, automagically), this is not in Advanced mode thoughMisterNight
03/05/2023, 4:32 PMMisterNight
03/05/2023, 4:33 PMUnsmart | Tech debt
03/05/2023, 6:59 PMDanTheGoodman
03/06/2023, 1:37 PMconst res = new Response("broadcasted")
logger.Drain()
return res
With logger.Drain()
looking like:
async (lines) => {
console.log("draining logs!")
await googleDestinationFunction(lines, c.env)
console.log("done!")
}
Looking at my execution logs within cloudflare, I see only the draining logs!
log, but not the done!
log. I've also tried returning the googleDestinationFunction
log directly (which also contains logs that I do not see) and it just seems like the DO is exiting once the promise starts running... It is my understanding that the DO should let any other promises run the in background, correct?MisterNight
03/06/2023, 5:06 PMMisterNight
03/06/2023, 5:16 PMHardAtWork
03/06/2023, 5:17 PMworkers_dev
route, so the Worker itself cannot incur any Requests.MisterNight
03/06/2023, 5:18 PMexport default {}
? https://github.com/cloudflare/durable-objects-template/blob/master/src/index.mjs#L3MisterNight
03/06/2023, 5:19 PM