Repository navigation
Releases
KaggleFleet v0.4.0
Added
kfleet run stop <job>stops a queued or running run, and so doPOST /api/runs/:id/stopand a stop
button in the web panel. Kaggle has no public cancel call, so this deletes the kernel on Kaggle (with
its earlier versions and outputs) after confirming that the run is still going and downloading whatever
output Kaggle still has. The job becomesCANCELLED(withstopped_at), and later chunks of a chained
run are cancelled. It needs--yes(CLI),"confirm": true(API) or typing the slug.kfleet account export [-f json|csv] [-o FILE]: the account inventory and this week's usage, without
credentials.kfleet account export --include-secrets -o FILEandkfleet account restore FILE [--overwrite] [--test]:
move accounts to another machine in an encrypted bundle (openssl AES-256-CBC with PBKDF2, plus
HMAC-SHA256). CLI only. Restored accounts start asuntested.kfleet mcp: a Model Context Protocol server on stdio (standard library only) with tools for accounts,
notebooks, pushing, queueing, status, logs, downloads, stopping runs and reports. Results have the same
shapes as--json.
KaggleFleet v0.3.0
Added
-
kfleet report run [job]: a summary of one run from its downloaded outputs (parameters, metrics from
metrics.json-style files, CSV summaries, plots, file list, last log progress and log tail) as
Markdown, JSON or one self-contained HTML file with the plots embedded.--fetch-logsuses the full
Kaggle log and--sendposts a text summary to the notification channels. -
kfleet report compare <job> <job>...lines up parameters, metrics and final CSV values of several runs. -
RUN_REPORTnotification event (off by default): the worker sends a run summary after downloading
outputs. -
Sign-in watchdog in the worker: each account is probed every 6 hours with a read-only call; when Kaggle
rejects its credentials the account becomesinvalidand oneTOKEN_INVALIDnotification is sent.
Network errors never change an account's status. -
Weekly quota digest: one
QUOTA_DIGESTnotification 24 hours before the quota reset with each account's
estimated unused GPU hours. -
kfleet watchdog status|config|check|digest,kfleet worker --no-watchdog, and
GET /api/watchdog,POST /api/watchdog/check|config. -
kfleet queue priority <item> <N>andPOST /api/queue/:id/priorityreorder pending items. -
Web panel: a Queue tab (worker and watchdog status, queued runs with priority and cancel controls,
pipelines with per-stage state), live log streaming over Server-Sent Events
(GET /api/runs/:id/logs/stream), progress bars and metrics parsed from logs, and an artifact browser
(GET /api/runs/:id/files) with text, CSV and image previews plusGET /api/runs/:id/report. -
GET /api/reports/usageandGET /api/reports/compare.GET /api/runs/:id/logsaddstextand
progress, andGET /api/runsaddsprogressfor active jobs. -
--param KEY=VALUEonrun pushandqueue add("params"in the API) sets notebook variables in the
uploaded copy. A code cell goes after the cell taggedparameters(or first), and jobs recordparams. -
kfleet run sweep <nb> --grid lr=1e-4,3e-4 --grid seed=1,2queues one run per combination, each with
its own kernel slug, as one sweep group.--max-runs(default 16) guards against huge grids and
--dry-runshows the plan.POST /api/sweeps,GET /api/sweeps/:id. -
--max-chains N(and--stop-file NAME) for runs longer than Kaggle's 12-hour limit. Each finished
chunk queues the next one on the same account and slug, with the previous chunk's output attached under
/kaggle/input/<slug>/. The notebook getsFLEET_CHAIN_INDEX,FLEET_MAX_CHAINSand
FLEET_RESUME_DIR. A dependency on a chained run waits for its last chunk. -
kfleet dataset sync <dir>andkfleet dataset statuscreate or version private Kaggle datasets
without changing the folder.run push --local-data DIRuploads a folder and attaches it. -
queue add --bridge("bridge_outputs": true): outputs of dependencies that ran on another account
are downloaded and uploaded as a private dataset of the account that runs the item. -
Declarative pipelines:
kfleet pipeline validate|run|status|list|cancelforfleet.json(or
fleet.tomlon Python 3.11+). Stages get dependencies, outputs, chaining and parameters wired
automatically, and the worker sends aPIPELINE_DONEnotification.GET/POST /api/pipelines,
GET/DELETE /api/pipelines/:id. Seeexamples/fleet.json. -
kfleet worker: a background loop that polls every queued or running job (including ones pushed by
earlier processes), downloads outputs of finished runs, sends notifications and pushes queued runs.
One worker per state directory (worker.lock), with a heartbeat inworker.json.--onceruns a
single pass for cron.kfleet worker status,kfleet doctorandGET /api/statusreport it. -
kfleet serveruns the same worker loop unless a separate worker is running (--no-workerturns it off). -
A persistent run queue:
kfleet queue add|list|cancel|clearandGET/POST/DELETE /api/queue, with
--afterdependencies,--on-failure stop|continue,--priorityand--attach-outputs. The
dispatcher keeps each account under 2 active runs, retries pushes Kaggle turns down for temporary
reasons with exponential backoff, waits for the quota reset when quota is used up, and never retries a
push whose outcome is unknown. -
Jobs record
auto_download,download_dirandqueue_item_id. -
Web panel Settings tab: notification channels, events and a test message; watchdog settings,
sign-in check and digest; dataset upload; usage report. The launch form can queue runs (dependencies,
on-failure, priority, attach or bridge outputs) and plan sweeps, and takes parameters, extra sources,
chained runs and local data folders. Accounts can be edited, pipelines run and the queue cleared.
New endpoints:/api/notifications/*,/api/datasets/sync|status,POST /api/accounts/:id/update,
POST /api/watchdog/digest;POST /api/runstakeslocal_data;paramsmay be"NAME=VALUE"lines.
Changed
TOKEN_INVALIDandQUOTA_DIGESTare now among the default notification events.- A job id that is a kernel slug now means the slug's newest job (it used to mean the oldest).
check_statusno longer queries Kaggle for finished jobs or jobs whose slug was pushed again.
Fixed
kfleet servehung on Ctrl+C / SIGTERM; it now stops the server and its worker and exits.kfleet serve --port 0(pick a free port) was turned into port 8080.- Job status was read from the whole
kaggle kernels statusline, so a kernel named e.g.
autocomplete-bertwas marked COMPLETE while running, andrunning-meannever left RUNNING. - Polling an old job after its slug was pushed again gave it the new run's status (a DOWNLOADED job became
RUNNING, an ERROR became COMPLETE). --after <job id of chunk 1>on a chained run released the dependent before the last chunk finished.- A
--stop-fileleft in the slug's output folder by an earlier run ended a new chain after chunk 1. - A chained run waited forever when the previous chunk's outputs could not be downloaded or downloads were off.
- Bridge dataset slugs of sweep runs could collide after truncation, so only one run's outputs were attached.
- The sign-in watchdog could mark an account valid again after
kfleet account testfound credentials
from another account; it now only undoes theinvalidit set itself. - A queue priority change made while the worker was mid-tick could be reverted.
- An unreadable (corrupt) state file was silently replaced on the next save; a copy is now kept as
<file>.corrupt-<hash>. - Kernel slugs are validated, so a slug like
../../xcan no longer place staging files outside the
staging folder. POST /api/queuewithbridge_outputsbut notattach_outputsnow behaves like--bridge.queue clearkeeps finished items that pending items still depend on.PIPELINE_DONEis a new notification event, enabled by default.run pushwithout--watchnow records whether outputs should be downloaded (--no-downloadto opt
out), so a running worker downloads them when the run completes.POST /api/runsno longer starts a per-job watcher thread when a worker is running.
KaggleFleet v0.2.0
Added
--account autoforrun push(and"account_id": "auto"inPOST /api/runs, the web panel's
"Auto-pick best account" option) picks a valid account with a free session slot and the most estimated
quota left. Jobs recordauto_routed.- Preflight checks before every push: a notebook with no code, an account whose sign-in failed, an
account with 2 active runs, or an exhausted weekly quota blocks the push before Kaggle is contacted.
Low quota and large saved outputs produce warnings.--force("force": true) pushes anyway. The API
returns409with thepreflightresults. --strip-outputs(and a web panel switch) uploads a copy of the notebook without saved cell outputs.- Notifications through Telegram, webhooks (Slack, Discord) and local shell commands:
kfleet notify,
per-run--on-complete/--on-error, and credential masking in message text. kfleet report usagewrites per-account quota and job reports as Markdown, HTML, CSV or JSON.
Changed
run push --account <name>with an unknown account is now an error instead of silently using the
active account.
KaggleFleet v0.1.2
Changed
- Metadata-only patch release to rerun the production release and deployment pipeline.
KaggleFleet v0.1.1
Changed
- Allow renewing credentials in place for invalid Kaggle accounts during login.
- Make PyPI publishing retry-safe so an existing distribution does not fail the release workflow.
KaggleFleet v0.1.0
First public release.
Added
- Multiple Kaggle accounts on one machine, each in an isolated credential sandbox (per-account
KAGGLE_CONFIG_DIRandHOME). - Account sign-in through the browser (sandboxed
kaggle auth login), sign-in with a link and code, API keys, and import from~/.kaggle. kfleet account testchecks the identity Kaggle reports, not just that a login works.- Notebook discovery, staging, and
kernel-metadata.jsongeneration, with dataset, competition, kernel and model sources. - Push, status, logs and output download for Kaggle kernels, plus a
--watchmode. - Local web panel (
kfleet serve) with accounts, estimated weekly GPU hours per account, launches, jobs and logs. --jsonoutput on every command, pluskfleet doctor, for scripts and AI agents. SeeAGENTS.md.- Cross-process file locking for the state files, so the CLI and the web panel can run at the same time.
- Web panel protection against cross-site requests and DNS rebinding.
- Published on PyPI as
kaggle-fleet(pipx install kaggle-fleet), with a tag-driven release workflow using PyPI Trusted Publishing.