Skip to content

Releases

KaggleFleet v0.4.0

Choose a tag to compare

@github-actions github-actions released this 30 Nov 10:52
45524a5

Added

  • kfleet run stop <job> stops a queued or running run, and so do POST /api/runs/:id/stop and 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 becomes CANCELLED (with stopped_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 FILE and kfleet 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 as untested.
  • 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

Choose a tag to compare

@github-actions github-actions released this 30 Nov 09:34
539fda9

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-logs uses the full
    Kaggle log and --send posts a text summary to the notification channels.

  • kfleet report compare <job> <job>... lines up parameters, metrics and final CSV values of several runs.

  • RUN_REPORT notification 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 becomes invalid and one TOKEN_INVALID notification is sent.
    Network errors never change an account's status.

  • Weekly quota digest: one QUOTA_DIGEST notification 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> and POST /api/queue/:id/priority reorder 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 plus GET /api/runs/:id/report.

  • GET /api/reports/usage and GET /api/reports/compare. GET /api/runs/:id/logs adds text and
    progress, and GET /api/runs adds progress for active jobs.

  • --param KEY=VALUE on run push and queue add ("params" in the API) sets notebook variables in the
    uploaded copy. A code cell goes after the cell tagged parameters (or first), and jobs record params.

  • kfleet run sweep <nb> --grid lr=1e-4,3e-4 --grid seed=1,2 queues one run per combination, each with
    its own kernel slug, as one sweep group. --max-runs (default 16) guards against huge grids and
    --dry-run shows 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 gets FLEET_CHAIN_INDEX, FLEET_MAX_CHAINS and
    FLEET_RESUME_DIR. A dependency on a chained run waits for its last chunk.

  • kfleet dataset sync <dir> and kfleet dataset status create or version private Kaggle datasets
    without changing the folder. run push --local-data DIR uploads 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|cancel for fleet.json (or
    fleet.toml on Python 3.11+). Stages get dependencies, outputs, chaining and parameters wired
    automatically, and the worker sends a PIPELINE_DONE notification. GET/POST /api/pipelines,
    GET/DELETE /api/pipelines/:id. See examples/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 in worker.json. --once runs a
    single pass for cron. kfleet worker status, kfleet doctor and GET /api/status report it.

  • kfleet serve runs the same worker loop unless a separate worker is running (--no-worker turns it off).

  • A persistent run queue: kfleet queue add|list|cancel|clear and GET/POST/DELETE /api/queue, with
    --after dependencies, --on-failure stop|continue, --priority and --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_dir and queue_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/runs takes local_data; params may be "NAME=VALUE" lines.

Changed

  • TOKEN_INVALID and QUOTA_DIGEST are 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_status no longer queries Kaggle for finished jobs or jobs whose slug was pushed again.

Fixed

  • kfleet serve hung 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 status line, so a kernel named e.g.
    autocomplete-bert was marked COMPLETE while running, and running-mean never 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-file left 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 test found credentials
    from another account; it now only undoes the invalid it 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 ../../x can no longer place staging files outside the
    staging folder.
  • POST /api/queue with bridge_outputs but not attach_outputs now behaves like --bridge.
  • queue clear keeps finished items that pending items still depend on.
  • PIPELINE_DONE is a new notification event, enabled by default.
  • run push without --watch now records whether outputs should be downloaded (--no-download to opt
    out), so a running worker downloads them when the run completes.
  • POST /api/runs no longer starts a per-job watcher thread when a worker is running.

KaggleFleet v0.2.0

Choose a tag to compare

@github-actions github-actions released this 30 Nov 04:10
3e58d0d

Added

  • --account auto for run push (and "account_id": "auto" in POST /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 record auto_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
    returns 409 with the preflight results.
  • --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 usage writes 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

Choose a tag to compare

@github-actions github-actions released this 22 Nov 10:27
8196278

Changed

  • Metadata-only patch release to rerun the production release and deployment pipeline.

KaggleFleet v0.1.1

Choose a tag to compare

@github-actions github-actions released this 22 Nov 09:40
5d65c16

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

Choose a tag to compare

@github-actions github-actions released this 21 Nov 17:12

First public release.

Added

  • Multiple Kaggle accounts on one machine, each in an isolated credential sandbox (per-account KAGGLE_CONFIG_DIR and HOME).
  • 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 test checks the identity Kaggle reports, not just that a login works.
  • Notebook discovery, staging, and kernel-metadata.json generation, with dataset, competition, kernel and model sources.
  • Push, status, logs and output download for Kaggle kernels, plus a --watch mode.
  • Local web panel (kfleet serve) with accounts, estimated weekly GPU hours per account, launches, jobs and logs.
  • --json output on every command, plus kfleet doctor, for scripts and AI agents. See AGENTS.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.