brindle 0.5.8__tar.gz → 0.5.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {brindle-0.5.8 → brindle-0.5.9}/PKG-INFO +2 -2
- {brindle-0.5.8 → brindle-0.5.9}/README.md +1 -1
- {brindle-0.5.8 → brindle-0.5.9}/pyproject.toml +1 -1
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/daemon/lifecycle.py +2 -1
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/daemon/routes_read.py +3 -1
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/spawn.py +23 -4
- {brindle-0.5.8 → brindle-0.5.9}/.gitignore +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/LICENSE +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/SCHEDULE-A +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/__init__.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/__main__.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/account.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/agents.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/airgap.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/antigravity.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/assembler.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/assets/braid_dark.png +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/assets/braid_light.png +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/autopilot.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/budget.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/builtin_agents/__init__.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/builtin_agents/backend-auditor.md +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/builtin_agents/coordinator.md +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/builtin_agents/developer-codex.md +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/builtin_agents/developer-fable.md +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/builtin_agents/developer-gemini.md +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/builtin_agents/developer-heavy.md +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/builtin_agents/developer-light.md +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/builtin_agents/developer-local.md +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/builtin_agents/developer-opencode.md +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/builtin_agents/developer-sonnet.md +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/builtin_agents/developer.md +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/builtin_agents/qa.md +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/builtin_agents/reviewer-codex.md +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/builtin_agents/reviewer-gemini.md +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/builtin_agents/reviewer-local.md +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/builtin_agents/reviewer-opencode.md +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/builtin_agents/reviewer.md +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/builtin_agents/subagent.md +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/builtin_agents/supervisor.md +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/builtin_rules/__init__.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/builtin_rules/analysis/doc.md +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/builtin_rules/security/backend.md +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/builtin_rules/style/minimal-diff.md +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/builtin_rules/tests/only.md +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/bus.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/check_scope.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/ci_adapters.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/ci_client.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/ci_federation.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/ci_hosts.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/cli.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/clone.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/cloud_credential.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/cloud_login.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/codemap.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/codemap_docs.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/codex_hook.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/company_identity.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/company_login.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/config.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/conflicts.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/connections.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/coordinator.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/cost.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/cost_estimate.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/cull.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/daemon/__init__.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/daemon/api-schema.json +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/daemon/app.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/daemon/auth.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/daemon/events.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/daemon/health.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/daemon/holds.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/daemon/peer.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/daemon/pty_view.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/daemon/routes_actions.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/daemon/routes_org_permissions.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/daemon/schema.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/daemon/session_review.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/daemon/terminal.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/db.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/debuglog.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/demo.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/detect.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/doctor.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/entry.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/escapes.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/events.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/gates.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/git.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/guardrails.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/history.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/identity_lock.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/inbox.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/kb.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/key_check.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/keys_cmds.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/keystore.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/knowledge.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/launch_health.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/learned_rules.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/learning.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/legacy.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/local_setup.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/login_pause.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/mcp_server.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/model_access.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/model_availability.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/native/__init__.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/native/catalog.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/native/client.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/native/loop.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/native/lsp.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/native/permissions.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/native/runner.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/native/serve.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/native/tools.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/opencode.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/org_permissions.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pane_auth.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/permission_asks.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/permission_grants.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/permission_groups.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/permission_routing.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/permissions.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/picker.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pipeline.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/plugins.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/policy.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pool.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/preflight.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pricing.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pro/__init__.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pro/_files.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pro/account.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pro/analysis_brief.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pro/analysis_docs.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pro/analysis_imports.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pro/analysis_policy.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pro/audit_chain.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pro/audit_export.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pro/auth.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pro/brief_learning.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pro/cost_centers.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pro/credentials.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pro/features.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pro/keys.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pro/learning.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pro/license.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pro/loopback.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pro/managed_models.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pro/org_profiles.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pro/orgkey.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pro/rollout.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pro/route_health.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pro/settings_sync.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pro/status.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pro/team_events.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/pro/team_policy.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/procs.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/profiles.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/prompt_answer.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/provider_homes.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/providers.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/providers_install.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/quota.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/repo_cmds.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/repos.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/rewind.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/rule_checks.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/savings.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/scratch.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/secrets.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/self_serve.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/service/__init__.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/service/dto.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/service/errors.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/service/inbox.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/service/permissions.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/service/routing.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/service/sessions.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/services.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/sessions.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/sidebar_follow.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/sidebar_logo.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/signin_pause.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/status_cache.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/tasks.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/tmux.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/updates.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/upgrade.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/usage.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/view.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/wake.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/watch.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/watch_costs.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/web/__init__.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/web/chat.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/web/dashboard.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/web/diff.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/web/server.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/web/static/app.js +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/web/static/index.html +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/worker_models.py +0 -0
- {brindle-0.5.8 → brindle-0.5.9}/src/brindle/workspaces.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: brindle
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.9
|
|
4
4
|
Summary: Run coding agents in parallel, each on its own git branch, with a supervisor that delegates, reviews, and merges
|
|
5
5
|
Project-URL: Homepage, https://pawdelta.com/brindle/
|
|
6
6
|
Project-URL: Documentation, https://pawdelta.com/brindle/docs/recommended-use
|
|
@@ -130,7 +130,7 @@ signed in. Claude Code is the default for the supervisor, workers and reviewer
|
|
|
130
130
|
There's also a free brindle desktop app for macOS and Linux (on Windows, use the CLI inside WSL2). It's a download from the brindle website and runs on the same engine; the CLI keeps working alongside it. `brindle app` opens the app, or prints the download link if it isn't installed. `brindle daemon` runs the local API the app talks to: over a Unix socket by default, or on `--tcp` at 127.0.0.1 for WSL. Over `--tcp` the daemon can't check whether a caller is an agent, so its token is the only gate: keep TCP for the WSL client.
|
|
131
131
|
|
|
132
132
|
`brindle --version` prints the installed version; the tmux status bar of every brindle
|
|
133
|
-
session shows it too (`brindle 0.5.
|
|
133
|
+
session shows it too (`brindle 0.5.9`). A session started before an upgrade keeps
|
|
134
134
|
running the old code, and shows the old number, until you restart it.
|
|
135
135
|
|
|
136
136
|
## Quick start
|
|
@@ -98,7 +98,7 @@ signed in. Claude Code is the default for the supervisor, workers and reviewer
|
|
|
98
98
|
There's also a free brindle desktop app for macOS and Linux (on Windows, use the CLI inside WSL2). It's a download from the brindle website and runs on the same engine; the CLI keeps working alongside it. `brindle app` opens the app, or prints the download link if it isn't installed. `brindle daemon` runs the local API the app talks to: over a Unix socket by default, or on `--tcp` at 127.0.0.1 for WSL. Over `--tcp` the daemon can't check whether a caller is an agent, so its token is the only gate: keep TCP for the WSL client.
|
|
99
99
|
|
|
100
100
|
`brindle --version` prints the installed version; the tmux status bar of every brindle
|
|
101
|
-
session shows it too (`brindle 0.5.
|
|
101
|
+
session shows it too (`brindle 0.5.9`). A session started before an upgrade keeps
|
|
102
102
|
running the old code, and shows the old number, until you restart it.
|
|
103
103
|
|
|
104
104
|
## Quick start
|
|
@@ -241,7 +241,8 @@ async def _watch(server, activity: Activity, idle_exit: bool, *,
|
|
|
241
241
|
monitor.tick(activity, due) # the daemon's own health, into debuglog
|
|
242
242
|
except Exception: # noqa: BLE001 - health logging must never stop the watch
|
|
243
243
|
log.debug("brindle: couldn't record the daemon's health", exc_info=True)
|
|
244
|
-
|
|
244
|
+
with spawn.waits_for_room(): # background work: it waits for room
|
|
245
|
+
await asyncio.to_thread(ready.sweep_safely) # session.pr_ready when a session becomes ready
|
|
245
246
|
if install.changed():
|
|
246
247
|
server.should_exit = True
|
|
247
248
|
elif (idle_exit and activity.open == 0
|
|
@@ -94,7 +94,9 @@ class HeavyReadLane:
|
|
|
94
94
|
try:
|
|
95
95
|
# Keep the slot until the synchronous handler has returned,
|
|
96
96
|
# including its error conversion and closing its thread's DB.
|
|
97
|
-
|
|
97
|
+
# Heavy reads are the work that waits for room (brindle.spawn).
|
|
98
|
+
with spawn.waits_for_room():
|
|
99
|
+
return await anyio.to_thread.run_sync(handler, request, limiter=self.workers)
|
|
98
100
|
finally:
|
|
99
101
|
self.admission.release()
|
|
100
102
|
|
|
@@ -133,6 +133,24 @@ def current() -> Deadline | None:
|
|
|
133
133
|
return _deadline.get()
|
|
134
134
|
|
|
135
135
|
|
|
136
|
+
# Only work marked here (the heavy read lane, background sweeps) or asked to
|
|
137
|
+
# `skip` waits for room. A request's own reads, the caller check and actions
|
|
138
|
+
# start at once: on a machine whose load stays above its core count, making
|
|
139
|
+
# them wait starved every request the app made (0.5.8).
|
|
140
|
+
_waits: contextvars.ContextVar[bool] = contextvars.ContextVar("brindle_spawn_waits_for_room", default=False)
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
@contextlib.contextmanager
|
|
144
|
+
def waits_for_room() -> Iterator[None]:
|
|
145
|
+
"""Processes started inside (and in threads that copy this context) wait
|
|
146
|
+
for room before they start; everything else starts at once."""
|
|
147
|
+
token = _waits.set(True)
|
|
148
|
+
try:
|
|
149
|
+
yield
|
|
150
|
+
finally:
|
|
151
|
+
_waits.reset(token)
|
|
152
|
+
|
|
153
|
+
|
|
136
154
|
def begin_write() -> None:
|
|
137
155
|
"""The request is about to change something itself (a file written from
|
|
138
156
|
Python, say), not through :func:`action`: raise Busy if its deadline has
|
|
@@ -274,8 +292,8 @@ def forced_starts() -> int:
|
|
|
274
292
|
return 0
|
|
275
293
|
|
|
276
294
|
|
|
277
|
-
def _has_room() -> bool:
|
|
278
|
-
return not _gated or _running == 0 or room() >= 1
|
|
295
|
+
def _has_room(waits: bool = True) -> bool:
|
|
296
|
+
return not _gated or not waits or _running == 0 or room() >= 1
|
|
279
297
|
|
|
280
298
|
|
|
281
299
|
def stats() -> dict:
|
|
@@ -299,6 +317,7 @@ def _admit(end: float, dl: Deadline | None, skip: bool, what: str, start_anyway:
|
|
|
299
317
|
Busy (``end`` passed, or ``dl`` stopped) instead; with ``start_anyway``
|
|
300
318
|
it starts at ``end`` instead of failing."""
|
|
301
319
|
global _running, _refused
|
|
320
|
+
waits = skip or _waits.get()
|
|
302
321
|
with _cond:
|
|
303
322
|
while True:
|
|
304
323
|
if dl is not None and dl.stopped:
|
|
@@ -308,8 +327,8 @@ def _admit(end: float, dl: Deadline | None, skip: bool, what: str, start_anyway:
|
|
|
308
327
|
if left <= 0 and not start_anyway: # past it: never start, room or not
|
|
309
328
|
_refused += 1
|
|
310
329
|
raise Busy(f"{what} was not started: "
|
|
311
|
-
+ (why() if not _has_room() else "the request's deadline passed"))
|
|
312
|
-
if left <= 0 or _has_room():
|
|
330
|
+
+ (why() if not _has_room(waits) else "the request's deadline passed"))
|
|
331
|
+
if left <= 0 or _has_room(waits):
|
|
313
332
|
break
|
|
314
333
|
if skip:
|
|
315
334
|
_refused += 1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|