Skip to main content

Module folder_overlap

Module folder_overlap 

Source
Expand description

A host agent that shares a folder with a container agent: which container agents, and the person going ahead with one (backend::folder_overlap). Anyone may ask which; only the AgentMux window goes ahead or says no to an agent’s ask for the go-ahead (folder_overlap_ask). A caller that is not the window, an agent’s connection or one that has not proven it is the window, is refused with what to do instead. Each answer is recorded as the person’s.

Constants§

ONLY_THE_PERSON_GOES_AHEAD 🔒
What a caller is told when it is not the window.

Functions§

accept 🔒
ask_for_resumed 🔒
Restart resume left host agent agent_id (its parked block block_id) stopped for want of the person’s go-ahead: one ask per pair it shares a folder with, with no asking agent, which the window shows as a card for the agent’s block.
audit 🔒
Records what the person declined, or what an agent asked, in the audit log: by is the asking agent’s slug, and None for the person’s own window. The go-ahead is recorded by backend::folder_overlap::accept_as, which writes its row before the choice it records.
check 🔒
decline 🔒
forget_asks_of 🔒
An agent is deleted: what it asked, and what was asked about it, goes with it.
name_of 🔒
The name of agent id, or its id when it has none on record.
publish_asks 🔒
Tells every window the asks now waiting.
register
resume_when_nothing_waits 🔒
Restart resume left the host agent stopped for the pair just gone ahead with: once no pair holds it, it comes back.