From ba01f456a44bc6a054ba61173df53f6fe9db3a66 Mon Sep 17 00:00:00 2001 From: fang Date: Thu, 16 Dec 2021 17:33:48 +0100 Subject: [PATCH] autoprop: include tasks in wake failure print --- pkg/autoprop/app/autoprop.hoon | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/autoprop/app/autoprop.hoon b/pkg/autoprop/app/autoprop.hoon index af63edd19..b33353fa2 100644 --- a/pkg/autoprop/app/autoprop.hoon +++ b/pkg/autoprop/app/autoprop.hoon @@ -219,14 +219,16 @@ |= [=wire sign=sign-arvo] ^- (quip card _this) ?: ?=([%build ~] wire) + :: on-wake, build all tasks whose time has come + :: ?> ?=(%wake +<.sign) - ?^ error.sign - ((slog 'on-wake build failed' u.error.sign) ~ this) =/ tasks=(list @ta) %+ murn ~(tap by make) |= [name=@ta next=(unit @da) task] ?~ next ~ ?:((lte u.next now.bowl) (some name) ~) + ?^ error.sign + ((slog 'on-wake build failed' >tasks< u.error.sign) ~ this) :: =| cards=(list card) |- @@ -239,6 +241,7 @@ ?. ?=(%writ +<.sign) ~& [dap.bowl %unexpected-sign +<.sign] [~ this] + :: on-writ, bump build timers for all affected tasks :: =/ tasks=(list @ta) %+ murn ~(tap by make)