add TODOs
This commit is contained in:
@@ -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
|
||||||
|
*/
|
||||||
Reference in New Issue
Block a user