mirror of
https://github.com/tloncorp/landscape.git
synced 2024-12-01 02:45:49 +03:00
bark: correctly handle save-summary thread results
We weren't accounting for the different wire used for this, causing us to spill our spaghetti and redirect processing to +on-fail, which wasn't very graceful. Now, we can actually properly notify on failed thread runs.
This commit is contained in:
parent
e3bb719986
commit
1f0456d08b
@ -39,12 +39,20 @@
|
||||
++ on-arvo
|
||||
|= [=wire sign=sign-arvo]
|
||||
^- (quip card _this)
|
||||
?> =(/fetch wire)
|
||||
?> ?=(%wake +<.sign)
|
||||
=^ caz this (on-poke %bark-generate-summaries !>(~))
|
||||
:_ this
|
||||
:_ caz
|
||||
[%pass /fetch %arvo %b %wait (next-timer now.bowl)]
|
||||
?+ wire ~|([%strange-wire wire] !!)
|
||||
[%fetch ~]
|
||||
?> ?=(%wake +<.sign)
|
||||
=^ caz this (on-poke %bark-generate-summaries !>(~))
|
||||
:_ this
|
||||
:_ caz
|
||||
[%pass /fetch %arvo %b %wait (next-timer now.bowl)]
|
||||
::
|
||||
[%save-summary @ @ ~]
|
||||
?> ?=(%arow +<.sign)
|
||||
?: ?=(%& -.p.sign) [~ this]
|
||||
%- (slog 'bark: failed to save summary' p.p.sign)
|
||||
[~ this]
|
||||
==
|
||||
::
|
||||
++ on-poke
|
||||
|= [=mark =vase]
|
||||
|
Loading…
Reference in New Issue
Block a user