Skip to content

SpiderPro v1.0.12

Choose a tag to compare

@github-actions github-actions released this 02 Dec 07:48
· 3 commits to main since this release

SpiderPro v1.0.12

Environment lifecycle and distributed Python package installation fixes discovered during live Docker Worker task migration: deactivated unbound system-path environments can now be cleanly deregistered, compound PEP 440 pip version ranges no longer fail with 503 MANAGEMENT_STORAGE_UNAVAILABLE, distributed venv creation avoids redundant double pip install, and the UI proxy upstream timeout supports heavy package installs.

Fixed

  • Deactivated Unbound System-Path Environments Stuck Undeletable (src/crawler_management/service.py):
    • _evaluate_runtime_protection() now accepts enabled: bool = True: environments with bound tasks (task_count > 0) and active OS-core runtimes (/usr/bin/*, /bin/*, C:\Windows\*) remain protected, while already-disabled (enabled=False) environments with 0 bound tasks can be cleanly deregistered without touching the host filesystem
    • _execute_true_runtime_uninstall() isolates deactivated system-path cleanup as strictly deregister-only (never cascade-deleting active profiles sharing the path and never poisoning env_excluded / envscan)
    • delete_worker_node() now automatically deregisters unbound (task_count == 0) environments on the deleted node while preserving bound profiles as disabled until their tasks are rebound
  • Compound PEP 440 Version Ranges Causing 503 MANAGEMENT_STORAGE_UNAVAILABLE (src/crawler_management/service.py):
    • install_runtime_package() now passes the full compound version specifier (e.g. curl_cffi>=0.15.0,<1) to pip install while normalizing version_spec via _normalize_db_pip_version_spec() to satisfy PostgreSQL platform_runtime_package_revisions CHECK(version_spec ~ '^[A-Za-z0-9][A-Za-z0-9._+-]{0,63}$')
  • Single Mirror-Accelerated pip install & Extended UI Proxy Timeout (src/crawler_management/service.py, deploy/scripts/public_ui_proxy.py):
    • create_distributed_environment() now creates the remote isolated venv first (packages: []) and performs a single configured-mirror, exit-code-checked install_runtime_package() pass (and forwards pypi_index_url to create_managed_venv)
    • public_ui_proxy.py raises default upstream timeout from 90s to 300s (configurable via SPIDERPRO_UPSTREAM_TIMEOUT_SEC) so heavy package installs do not prematurely return 502