Merge pull request #7063 from urbit/pkova/really-nuke

gall: delete agent blocked moves on |nuke
This commit is contained in:
Pyry Kovanen 2024-09-04 19:08:59 +03:00 committed by GitHub
commit 425655a8e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -957,6 +957,10 @@
++ mo-nuke
|= [prov=path dap=dude]
^+ mo-core
=? mo-core (~(has by blocked.state) dap)
=/ num-movs=@ ~(wyt by (~(got by blocked.state) dap))
~> %slog.0^leaf/"gall: deleted {<num-movs>} blocked moves for {<dap>}"
mo-core(blocked.state (~(del by blocked.state) dap))
=/ yoke=(unit yoke) (~(get by yokes.state) dap)
?: |(?=(~ yoke) ?=(%nuke -.u.yoke))
~> %slog.0^leaf/"gall: ignoring %nuke for {<dap>}, not running"