Skip to content

SpiderPro v1.0.9

Choose a tag to compare

@summer12433 summer12433 released this 01 Dec 08:15
· 8 commits to main since this release

SpiderPro v1.0.9

3-layer configurable per-worker parallel execution (1..16, including Windows headed interactive runs), Worker journal auto-compaction beyond 64 attempts, unaccepted LEASED cancel loop fix (PostgreSQL migration 0046), and Gateway reconnect recovery self-healing for orphaned/expired-terminal Redis PEL entries with handshake offline rollback.

Added

  • 3-Layer Multi-Task Parallel Execution (1..16 per Worker):
    • Gateway (gateway/server/server.go, gateway/daemon/config.go, gateway/daemon/runtime_config.go): added max_concurrent_offers (1..16, default 1), multi-slot inFlight tracking with out-of-order terminal release, and increased outboundQueueCapacity (64 → 256).
    • Worker Agent (worker/agent/config.go, worker/agent/agent.go, worker/cmd/worker-agent/main.go): opened max_concurrent_tasks to 1..16 with concurrent per-dispatch execution/streaming while still blocking concurrent attempts for the same RunId and enforcing WORKER_AGENT_BUSY.
    • Windows Headed InteractiveRunner (worker/interactive/runner.go, pipe_windows.go, pipe_server_windows.go, worker/cmd/interactive-runner/main.go): opened max_concurrent_runs to 1..16 using a fixed N-slot persistent Named Pipe pool (preserving slot-0 FILE_FLAG_FIRST_PIPE_INSTANCE, per-slot DACL, PIPE_REJECT_REMOTE_CLIENTS, and PID→SID verification).
  • Expanded Prebuilt Static Release Binaries (.github/workflows/release-binaries.yml): automatically cross-compiles and attaches worker-agent-*, gateway-daemon-*, and interactive-runner-windows-amd64.exe with .sha256 and SHA256SUMS.txt.

Fixed

  • Worker Journal & Session 64-Attempt Quota Compaction (worker/agent/journal.go, worker/agent/agent.go): compacts oldest fully committed (RESULT + TerminalAck + all chunks acked + different RunId) journal entries when exceeding 64 attempts / 24 MiB, and prunes committed in-memory session attempts to avoid WORKER_AGENT_REPLAY_QUOTA on the 65th run.
  • Unaccepted LEASED Cancel Retry Loop (migrations/0046_cancel_unaccepted_leased_attempt.sql, src/crawler_management/service.py, worker/agent/agent.go, gateway/controlplane/service.go): immediately cancels unaccepted LEASED runs/attempts in PG (crawler.cancel_unaccepted_leased_attempt, with SAVEPOINT fallback for pre-0046 schemas), logs WORKER_AGENT_CONTROL_IGNORED on unknown cancel/renew instead of dropping Worker sessions, and applies bounded exponential backoff (5s → 60s) on control retry failures.
  • Gateway Reconnect Recovery Orphan/Terminal PEL Self-Healing & Handshake Offline Rollback (gateway/postgres/backend.go, gateway/daemon/recovery.go): discards provably unrecoverable Redis PEL entries (purged PG outbox_messages rows or expired unresolved terminal attempts) via DiscardStale during reconnect recovery while keeping fail-closed guards on cross-worker/tampered/unresolved-stale-generation entries; rolls back ONLINE presence via MarkWorkerOffline whenever EnsureGroup or RecoverPendingDeliveries fails during RecordHello.