HardAtWork
04/15/2023, 1:16 PMHardAtWork
04/15/2023, 1:16 PMuser6251
04/15/2023, 1:17 PMTino
04/17/2023, 7:17 AMErwin
04/17/2023, 3:03 PMuser6251
04/19/2023, 1:33 PMHardAtWork
04/19/2023, 1:37 PMuser6251
04/19/2023, 1:38 PMuser6251
04/19/2023, 1:41 PMHardAtWork
04/19/2023, 1:44 PMuser6251
04/19/2023, 3:20 PMjohn.spurlock
04/19/2023, 3:42 PMNetwork connection lost
from eyeballs to DOs in the last few minutes...john.spurlock
04/19/2023, 3:42 PMBen Caimano
04/19/2023, 3:45 PMjohn.spurlock
04/19/2023, 3:46 PMBen Caimano
04/19/2023, 3:58 PMckoeninger
04/19/2023, 4:06 PMjohn.spurlock
04/19/2023, 4:10 PMnetwork connection lost
even after retries, then it cleared upTarnadas
04/19/2023, 7:09 PMTarnadas
04/19/2023, 7:15 PMts
while (true) {
const addr = c.env.LIQUIDITY.idFromName(cancelOrder.order.pair_id);
const obj = c.env.LIQUIDITY.get(addr);
// no await here
obj.fetch(//...
}
this will cancel the old fetch?Unsmart | Tech debt
04/19/2023, 7:25 PMTarnadas
04/19/2023, 7:33 PMUnsmart | Tech debt
04/19/2023, 7:34 PMTarnadas
04/19/2023, 7:35 PMTarnadas
04/19/2023, 7:38 PMHardAtWork
04/19/2023, 8:01 PMts
const promiseArray: Promise<Response>[] = [];
while (true) {
const addr = c.env.LIQUIDITY.idFromName(cancelOrder.order.pair_id);
const obj = c.env.LIQUIDITY.get(addr);
// no await here
promiseArray.push(obj.fetch(...));
// Some Exit Condition must exist
}
await Promise.all(promiseArray);
Tarnadas
04/19/2023, 8:09 PMTarnadas
04/19/2023, 8:23 PMerik-beus
04/20/2023, 8:29 AMalarm
function. However, the alarm
function doesn't seem to have access to the DO instance when accessing this.myVariable
for instance (which I guess makes sense).
Instead, I'm trying to invoke the DO over http (using fetch) from the alarm
function, but I keep getting a 403 Forbidden
response.
Do you know if there's a limitation in place so that an alarm
function can't call its own DO using fetch?
I know that it's possible to use the DO's state.storage
to save data, but in our case we're exceeding the memory limits for the storage and hence we keep it in memory (only for 10 seconds at a time though).
I appreciate any help on this 🙂HardAtWork
04/20/2023, 8:31 AMalarm()
function doesn't have access to this.myVariable
means that the DO has recently been restarted, and thus does not have it in memory. If it isn't saved to state.storage
, then there isn't anything you can do to recover.