add TODOs

main
Avraham Sakal 1 year ago
parent 8868a29880
commit 5c8a54b4b5

@ -150,4 +150,12 @@ while((nextUnstartedSymbolAndAsOfDate = await getNextUnstartedSymbolAndAsOfDate(
// don't loop again until the queue has less than 50 items; we don't want it to grow in memory without bound: // don't loop again until the queue has less than 50 items; we don't want it to grow in memory without bound:
console.log("Waiting till less than 50 in queue"); console.log("Waiting till less than 50 in queue");
await q.onSizeLessThan(50); await q.onSizeLessThan(50);
} }
// wait until pending queue operations are done:
await q.onSizeLessThan(1);
/*** TODOs ***/
/*
+ Gracefully recover from errors in individual operations.
+ If program stops and is restarted, it should restart anything `pending`: erase existing option contracts for that symbol/asOfDate
*/
Loading…
Cancel
Save