small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo

remote: an awaited job no longer wakes the session, and a failed call says so

Awaiting a rem.run reference reached the remote kernel only after the reply to the call, so a quick job (systemctl is-active in a waiting loop) had already finished and owed a wake. With the cell backgrounded the session was idle, so every iteration became a turn. The reference now marks itself as soon as await starts, the same as a local job, and the owner drops a relayed jobs.completed for any job a reference on this side already awaited or read. The reply to the call that started a job now carries the job's state, so the notice can be matched before the first mirror frame lands. Remote notices stop pointing at jobs[id], which only exists in the remote kernel. A call that failed before anything awaited it (rem.run with timeout=7200) kept its error in a task nobody read, so id, tail() and poll() answered None forever. They now raise it, and the repr shows it. Jobs may run for up to a day instead of an hour. A job outlives the cell that started it, so the cell's limit never applied to it, and timeouts above a day still get the milliseconds hint. Signed-off-by: dawn <90008@klbr.net>


Author ptr.pet
Date Commit Parent b3ecc04a Change ID
+149 -19
8 changed files
+149 -19
8 changed files