mirror of
https://github.com/tloncorp/landscape.git
synced 2024-12-01 02:45:49 +03:00
Merge pull request #210 from tloncorp/m/bark-on-thread
bark: correctly handle save-summary thread results
This commit is contained in:
commit
ddf7ab9206
@ -39,12 +39,20 @@
|
||||
++ on-arvo
|
||||
|= [=wire sign=sign-arvo]
|
||||
^- (quip card _this)
|
||||
?> =(/fetch wire)
|
||||
?+ 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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user