Skip to content

Latest commit

 

History

History
127 lines (104 loc) · 6.15 KB

CHANGELOG.md

File metadata and controls

127 lines (104 loc) · 6.15 KB

Changelog

Notable changes to the datatorch python package (CLI, SDK and the runner daemon). Versions are the tags on this repository and the releases on PyPI.

0.8.5 (2026-11-29)

Fixed

  • Runner: one monitoring loop per connection. When the websocket dropped while a metric report was in flight, the old connection's monitoring loop survived the reconnect and kept reporting beside the new one, so each such drop added one more report a minute: on 2026-11-27 the prod runner, fifteen days after its last restart, was running 19 loops. The cause is asyncio.wait_for before Python 3.12, which drops a cancel that arrives in the same event-loop tick as the awaited call's own result or error. The runner's timed API calls (metric and local-action reports, a finished step's logs and result, the wait for a connection) now go through datatorch.utils.aio.wait_within, which always re-raises the cancel, and the monitor has a stop flag that the daemon sets on disconnect, so its loop ends even where a cancel is lost. A running runner is cleared of old loops by restarting it on this version.

Changed

  • datatorch pull: a person who is not part of a project needs a verified email to pull its dataset, the same rule as the Download button on the web. The server refuses each file otherwise. The CLI asks before it lists anything, has the verification link sent to the address on the account, and says what to do. At a terminal it waits up to ten minutes for the link to be opened and then carries on by itself. In a script it stops with the message and a non-zero exit. The project's owner and members are never asked, and neither is a runner. Against a server older than this rule the pull runs as before.

0.8.4 (2026-11-12)

Fixed

  • Runner: a step that is stopped (its timeout ran out, the run was canceled, or the runner is shutting down) now stops everything it started, not only the shell that wraps its command. Before, the runner killed that one shell and whatever ran under it carried on with nobody watching: on 2026-11-11 the org-root dataset-scout seed step hit its 240 minute timeout and its claude process kept working against the server for another 40 minutes. Each step now runs in its own session and process group. On a stop the runner notes every process under the step (one that moved to a session of its own is still found, by parentage), sends them SIGTERM so a program that manages children of its own can stop them, and kills whatever is still running 5 seconds later (TERMINATE_GRACE_SECONDS). Windows is unchanged: the direct child is terminated as before.

Changed

  • Runner: because a step has its own session, Ctrl-C in the terminal the runner was started from reaches the runner alone. The runner then stops its running steps itself, through the path above.

0.8.3 (2026-11-09)

Fixed

  • Runner: a dropped websocket no longer cancels the steps the runner is running. Before, any transport failure (no close frame received or sent, keepalive ping timeout, a rolling API deploy) tore down every running step before reconnecting, so a four-second blip killed hours of work (the org-root dataset-scout seed step, 2026-11-09, three drops in eighteen minutes). Now only the connection's own tasks (monitoring, the stop-signal and command listeners) are rebuilt on reconnect. A step that finishes while the runner is disconnected holds its result (its last log lines and the completion) until the connection is back and retries the report for up to 10 minutes; after that it logs the loss and drops the result. A completion the server no longer accepts (the step was failed, canceled or timed out there while the runner was offline) is logged and absorbed, never a crash. A real shutdown (Ctrl-C, SIGTERM) still cancels running steps as before.
  • Runner: finished step tasks are removed from the daemon's task list, so the shutdown path and its "Exiting N active step(s)" line count the steps really in flight (the list only ever grew before: 71, 74, 77 across three reconnects on the same day).
  • Runner: a claim that fails because the connection just dropped is logged and the step is left for the next connection to pick up (the server offers unclaimed steps again on connect), instead of dying silently.
  • Runner: a step whose final log upload fails is still reported as finished; the lines go out with the completion.

Changed

  • Runner: a step's log lines stream to the server every 3 seconds while the step runs (before, one batch was sent 10 seconds in and the rest only at the end), so the run page and a chat turn's live view show them as they are printed. A batch that fails to send is kept and goes out with the next one.
  • Runner: datatorch.runner.serve_forever(client, transport) is the connect-serve-reconnect loop start() runs, with one RunnerDaemon across connections (daemon.serve(session) per connection). The one-shot RunnerDaemon.run(session) still works for outside callers.

0.8.2 (2026-10-29)

Added

  • CLI: datatorch import coco runs the import on the server by default (upload, match images to dataset files by name, create missing labels with keypoint names and skeleton, write boxes, polygons and keypoints, then wait for the job and print its counts and warnings). --dataset picks the dataset when the project has more than one; the old pycocotools path stays behind --client-side.

Fixed

  • Runner: step inputs that merely contain ${{ ... }} text no longer fail or get rewritten. The runner now renders only its own namespaces (runner/agent, directory, machine, python, step, action, run, input/variable); any other expression (steps.*, inputs.*, jobs.*, secrets.*, unknown names, or text that does not parse) is passed through exactly as written. Before, a message input that quoted an older error such as ${{ steps.fetch.output.body }} failed the step with "'steps' is undefined" (seen on the org-root watchdog-sense pipeline, 2026-10-29). Objects and arrays were never rendered and still pass through untouched.

0.8.1 and earlier

See the git history and the GitHub releases.