Gavin
05/07/2021, 8:17 PMMallissin
05/08/2021, 12:13 AMDeleted User
05/08/2021, 2:29 AMDeleted User
05/08/2021, 2:29 AMDeleted User
05/08/2021, 2:30 AMawait storage.get('somekey')
isn't working?Unsmart | Tech debt
05/08/2021, 2:52 AMDeleted User
05/08/2021, 4:01 AMDeleted User
05/08/2021, 4:01 AMGavin
05/08/2021, 6:00 AMUnsmart | Tech debt
05/08/2021, 6:42 AMUnsmart | Tech debt
05/08/2021, 6:44 AMAlex Braunreuther
05/08/2021, 9:25 AMGreg Brimble | Cloudflare Pages
05/08/2021, 9:52 AMAlex Braunreuther
05/08/2021, 9:53 AMGreg Brimble | Cloudflare Pages
05/08/2021, 9:55 AMrequest.cf
is empty, then that's a bug for sure. Not sure if the team have been properly alerted (cc. @User ?). But within the DO fetch handler, I imagine that could be empty, since it's not a real over-the-internet request that it handles.Alex Braunreuther
05/08/2021, 9:58 AMAlex Braunreuther
05/08/2021, 9:59 AMGreg Brimble | Cloudflare Pages
05/08/2021, 10:00 AMjed
05/08/2021, 10:28 AMGavin
05/08/2021, 11:05 AMGavin
05/08/2021, 11:07 AMvans163
05/08/2021, 1:32 PMvans163
05/08/2021, 1:33 PMvans163
05/08/2021, 1:33 PMvans163
05/08/2021, 1:34 PMjavascript
class DOClass {
do_tick() {
if (this.tickPending)
return;
this.tickPending = true;
setTimeout(() => this.tick(), 1000)
}
async tick() {
try {
await this.delegate_jobs();
} catch (err) {
this.broadcast(JSON.stringify({opcode: err.message, stack: err.stack}))
}
setTimeout(() => this.tick(), 1000)
}
}
code like thisvans163
05/08/2021, 1:34 PMvans163
05/08/2021, 1:34 PMvans163
05/08/2021, 1:34 PMvans163
05/08/2021, 1:35 PM