fleet-python 0.2.121__tar.gz → 0.2.122__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.
- {fleet_python-0.2.121/fleet_python.egg-info → fleet_python-0.2.122}/PKG-INFO +1 -1
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/__init__.py +1 -1
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/_async/__init__.py +1 -1
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/_async/base.py +1 -1
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/base.py +1 -1
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/track/queue.py +14 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/track/uploader.py +4 -2
- {fleet_python-0.2.121 → fleet_python-0.2.122/fleet_python.egg-info}/PKG-INFO +1 -1
- {fleet_python-0.2.121 → fleet_python-0.2.122}/pyproject.toml +1 -1
- {fleet_python-0.2.121 → fleet_python-0.2.122}/LICENSE +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/README.md +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/examples/diff_example.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/examples/dsl_example.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/examples/example.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/examples/exampleResume.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/examples/example_account.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/examples/example_action_log.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/examples/example_client.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/examples/example_mcp_anthropic.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/examples/example_mcp_openai.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/examples/example_sync.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/examples/example_task.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/examples/example_tasks.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/examples/example_verifier.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/examples/export_tasks.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/examples/fetch_tasks.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/examples/gemini_example.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/examples/import_tasks.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/examples/iterate_verifiers.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/examples/json_tasks_example.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/examples/nova_act_example.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/examples/openai_example.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/examples/openai_simple_example.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/examples/query_builder_example.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/examples/quickstart.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/examples/task_bundle_editing/download_task.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/examples/task_bundle_editing/launch_job.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/examples/task_bundle_editing/upload_task.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/examples/task_bundle_editing/validate_task.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/examples/test_cdp_logging.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/_async/client.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/_async/env/__init__.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/_async/env/client.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/_async/exceptions.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/_async/global_client.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/_async/instance/__init__.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/_async/instance/base.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/_async/instance/client.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/_async/models.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/_async/resources/__init__.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/_async/resources/api.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/_async/resources/base.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/_async/resources/browser.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/_async/resources/mcp.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/_async/resources/sqlite.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/_async/tasks.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/_async/verifiers/__init__.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/_async/verifiers/bundler.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/_async/verifiers/verifier.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/_supabase.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/agent/__init__.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/agent/gemini_cua/Dockerfile +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/agent/gemini_cua/__init__.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/agent/gemini_cua/agent.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/agent/gemini_cua/mcp/main.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/agent/gemini_cua/mcp_server/__init__.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/agent/gemini_cua/mcp_server/main.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/agent/gemini_cua/mcp_server/tools.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/agent/gemini_cua/requirements.txt +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/agent/gemini_cua/start.sh +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/agent/orchestrator.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/agent/types.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/agent/utils.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/auth.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/cli.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/client.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/config.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/env/__init__.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/env/client.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/eval/__init__.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/eval/uploader.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/exceptions.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/global_client.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/instance/__init__.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/instance/base.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/instance/client.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/instance/models.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/models.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/proxy/__init__.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/proxy/proxy.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/proxy/whitelist.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/resources/__init__.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/resources/api.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/resources/base.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/resources/browser.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/resources/mcp.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/resources/sqlite.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/tasks.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/track/__init__.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/track/api.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/track/cli.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/track/daemon.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/track/install.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/track/merkle.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/track/scrubber.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/track/sources.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/track/status.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/track/watcher.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/types.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/utils/__init__.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/utils/http_logging.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/utils/logging.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/utils/playwright.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/verifiers/__init__.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/verifiers/bundler.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/verifiers/code.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/verifiers/db.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/verifiers/decorator.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/verifiers/parse.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/verifiers/sql_differ.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet/verifiers/verifier.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet_python.egg-info/SOURCES.txt +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet_python.egg-info/dependency_links.txt +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet_python.egg-info/entry_points.txt +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet_python.egg-info/requires.txt +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/fleet_python.egg-info/top_level.txt +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/scripts/fix_sync_imports.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/scripts/unasync.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/setup.cfg +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/tests/__init__.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/tests/test_app_method.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/tests/test_expect_exactly.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/tests/test_expect_only.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/tests/test_instance_dispatch.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/tests/test_sqlite_resource_dual_mode.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/tests/test_sqlite_shared_memory_behavior.py +0 -0
- {fleet_python-0.2.121 → fleet_python-0.2.122}/tests/test_verifier_from_string.py +0 -0
|
@@ -141,6 +141,20 @@ class UploadQueue:
|
|
|
141
141
|
"UPDATE queue SET status = 'done', updated_at = ? WHERE path = ? AND sha256 = ?",
|
|
142
142
|
(now, path, sha256),
|
|
143
143
|
)
|
|
144
|
+
# Prune rows for the same path that were enqueued *before* this one —
|
|
145
|
+
# they are older versions superseded by this upload.
|
|
146
|
+
# Rows enqueued *after* (newer file content) are preserved so they
|
|
147
|
+
# upload without waiting for the next reconcile.
|
|
148
|
+
self._conn.execute(
|
|
149
|
+
"""
|
|
150
|
+
DELETE FROM queue
|
|
151
|
+
WHERE path = ? AND sha256 != ? AND status IN ('failed', 'pending')
|
|
152
|
+
AND enqueued_at <= (
|
|
153
|
+
SELECT enqueued_at FROM queue WHERE path = ? AND sha256 = ?
|
|
154
|
+
)
|
|
155
|
+
""",
|
|
156
|
+
(path, sha256, path, sha256),
|
|
157
|
+
)
|
|
144
158
|
self._conn.commit()
|
|
145
159
|
|
|
146
160
|
def mark_failed(self, path: str, sha256: str, error: str) -> None:
|
|
@@ -19,7 +19,9 @@ from .scrubber import scrub_bytes
|
|
|
19
19
|
log = logging.getLogger("fleet.track.uploader")
|
|
20
20
|
|
|
21
21
|
WORKERS = 8
|
|
22
|
-
|
|
22
|
+
# Per-phase timeouts: connect/read can be short, write needs to be generous
|
|
23
|
+
# for large JSONL files on slow connections.
|
|
24
|
+
UPLOAD_TIMEOUT = httpx.Timeout(connect=10.0, read=30.0, write=300.0, pool=10.0)
|
|
23
25
|
|
|
24
26
|
|
|
25
27
|
def _read_safe(path: Path) -> Optional[bytes]:
|
|
@@ -55,7 +57,7 @@ def upload_one(path: Path, presigned_url: str) -> bool:
|
|
|
55
57
|
presigned_url,
|
|
56
58
|
content=scrubbed,
|
|
57
59
|
headers={"Content-Type": "application/octet-stream"},
|
|
58
|
-
timeout=
|
|
60
|
+
timeout=UPLOAD_TIMEOUT,
|
|
59
61
|
)
|
|
60
62
|
if resp.status_code not in (200, 204):
|
|
61
63
|
log.warning("upload %s → HTTP %s", path.name, resp.status_code)
|
|
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
|