Merge pull request #210 from tloncorp/m/bark-on-thread

bark: correctly handle save-summary thread results
This commit is contained in:
Zach Alberico 2023-08-02 13:47:12 -07:00 committed by GitHub
commit ddf7ab9206
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 8 deletions

View File

@ -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]
@ -113,7 +121,8 @@
++ on-agent on-agent:def
++ on-fail
|= [=term =tang]
(mean ':sub +on-fail' term tang)
%- (slog 'bark: on-fail' term tang)
[~ this]
++ on-leave
|= =path
`this

View File

@ -35,7 +35,8 @@
::
=/ [%khan %arow %.y %noun vs=vase] mine
=+ !<(mail=(unit cord) vs)
?> ?=(^ mail)
?~ mail
(pure:m !>('no-mail'))
;< ~ bind:m
%- send-raw-card
:* %pass /update-merge-fields/(scot %p ship.args)