A machine works through its queue, and the wait allows for it
With caught-up finally an equality, the last red test turned out to be telling the truth about something real: declarations queue, the machine applies them one at a time at half a minute each, and by the twenty- fifth test it is minutes behind the latest push. 240 seconds was not a generous bound on one apply — it was an accidental bound on the whole backlog. Doubled rather than tuned, and the real remedy filed instead: a machine asked to be five successive things should become the last one, which is a decision about the link rather than about this timeout (novox/hq 04-ISSUES/031).
This commit is contained in:
@@ -120,7 +120,7 @@ async function mesh(command: string, timeoutMs?: number): Promise<string> {
|
|||||||
* to become right by being waited for, and a refusal read after two minutes of polling is the same
|
* to become right by being waited for, and a refusal read after two minutes of polling is the same
|
||||||
* refusal, later.
|
* refusal, later.
|
||||||
*/
|
*/
|
||||||
async function settled(node: string, withinMs = 240_000): Promise<void> {
|
async function settled(node: string, withinMs = 480_000): Promise<void> {
|
||||||
const until = Date.now() + withinMs;
|
const until = Date.now() + withinMs;
|
||||||
let last = "";
|
let last = "";
|
||||||
while (Date.now() < until) {
|
while (Date.now() < until) {
|
||||||
|
|||||||
Reference in New Issue
Block a user