kiln: update +poke-suspend to use a list of desks

This commit is contained in:
silnem2 2023-04-13 08:40:14 -06:00
parent 36fb1303d3
commit 6a0f66b836

View File

@ -784,8 +784,16 @@
`(foal where %sched !>((~(put by old) tym eve)))
::
++ poke-suspend
|= =desk
abet:(emit %pass /kiln/suspend %arvo %c %zest desk %dead)
|= desks=(list desk)
=< abet
%- emil
%+ turn
%+ skim desks
|= dek=desk
?: (~(has in .^((set desk) %cd /(scot %p our)/base/(scot %da now))) dek)
&
((slog leaf+"kiln: desk does not yet exist: {<dek>}" ~) |)
|=(=desk [%pass /kiln/suspend %arvo %c %zest desk %dead])
::
++ poke-sync
|= hos=kiln-sync