Fix orphaned quick commands, prompt timeouts and worker delete (#6, #21, #34)

- #6: a quick command to a disconnected worker is refused before an
  execution is recorded, instead of leaving one stuck in 'running'.
- #21: an unanswered prompt fails the execution (prompt_timeout) instead
  of continuing as if someone had chosen; prompt and wait steps never
  wait past the execution's deadline, and a wait cut short by it fails
  with execution_timeout. PULSE_PROMPT_TIMEOUT_MS (minimum 1 s, default
  60 min) lets the test stack use 8 s.
- #34: deleting a connected worker is a 409 explaining it would
  re-register on its next heartbeat; offline workers delete as before.

Tests for each (integration 45/45).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jaredandClaude Opus 5.5 committed 2026-11-23 00:04:06 -05:00
1 parent 073114c92e
commit d517cae7e6
4 files changed
+85 -11

No files matched your search

+1
View File
@@ -26,6 +26,7 @@ export GANDALF_API_KEY=ui-test-gandalf-key
export SECRET_KEY=ui-test-secret EXECUTION_RETENTION_DAYS=30
export PULSE_API_RATE_MAX=100000 PULSE_EXEC_RATE_MAX=100000 # one test client makes many requests
export PULSE_SCHEDULER_TICK_MS=1000 # scheduler tests shouldn't wait a minute
export PULSE_PROMPT_TIMEOUT_MS=8000 # nor prompt-timeout tests an hour
stop() {
for f in "$RUN"/*.pid; do