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
|
++ on-arvo
|
||||||
|= [=wire sign=sign-arvo]
|
|= [=wire sign=sign-arvo]
|
||||||
^- (quip card _this)
|
^- (quip card _this)
|
||||||
?> =(/fetch wire)
|
?+ wire ~|([%strange-wire wire] !!)
|
||||||
?> ?=(%wake +<.sign)
|
[%fetch ~]
|
||||||
=^ caz this (on-poke %bark-generate-summaries !>(~))
|
?> ?=(%wake +<.sign)
|
||||||
:_ this
|
=^ caz this (on-poke %bark-generate-summaries !>(~))
|
||||||
:_ caz
|
:_ this
|
||||||
[%pass /fetch %arvo %b %wait (next-timer now.bowl)]
|
:_ 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
|
++ on-poke
|
||||||
|= [=mark =vase]
|
|= [=mark =vase]
|
||||||
@ -113,7 +121,8 @@
|
|||||||
++ on-agent on-agent:def
|
++ on-agent on-agent:def
|
||||||
++ on-fail
|
++ on-fail
|
||||||
|= [=term =tang]
|
|= [=term =tang]
|
||||||
(mean ':sub +on-fail' term tang)
|
%- (slog 'bark: on-fail' term tang)
|
||||||
|
[~ this]
|
||||||
++ on-leave
|
++ on-leave
|
||||||
|= =path
|
|= =path
|
||||||
`this
|
`this
|
||||||
|
@ -35,7 +35,8 @@
|
|||||||
::
|
::
|
||||||
=/ [%khan %arow %.y %noun vs=vase] mine
|
=/ [%khan %arow %.y %noun vs=vase] mine
|
||||||
=+ !<(mail=(unit cord) vs)
|
=+ !<(mail=(unit cord) vs)
|
||||||
?> ?=(^ mail)
|
?~ mail
|
||||||
|
(pure:m !>('no-mail'))
|
||||||
;< ~ bind:m
|
;< ~ bind:m
|
||||||
%- send-raw-card
|
%- send-raw-card
|
||||||
:* %pass /update-merge-fields/(scot %p ship.args)
|
:* %pass /update-merge-fields/(scot %p ship.args)
|
||||||
|
Loading…
Reference in New Issue
Block a user