Skip to content

feat: job reads, cancel and the queued job number - #55

Merged
jwric merged 4 commits into
mainfrom
feat/jobs-api
Oct 14, 2026
Merged

jwric merged 4 commits into
mainfrom
feat/jobs-api

Conversation

@jwric

@jwric jwric commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Job wrappers for tracel jobs and tracel run --remote. Stacked on #54.

  • list_jobs, get_job, get_job_logs (byte-offset pages) and cancel_job mirror the server's project job routes; responses derive Serialize.
  • start_remote_job becomes queue_job(namespace, project_name, compute_provider_group_name, digest, command), matching the route and the other project methods, and returns the queue response, including job_num when the server sends it.
  • ApiErrorCode::ComputeProviderJob names a missing job, and ApiErrorCode::JobLog a job log that isn't there.
  • rust-version is 1.97.0, the lowest toolchain that builds and tests the workspace.

The server returns job_num with tracel-ai/tracel-app#1752, and reports a missing log as JOB_LOG with tracel-ai/tracel-app#1751. tracel-ai/tracel-cli#41 builds against this branch.

Base automatically changed from feat/cli-read-api to main October 14, 2026 21:22
jwric added 4 commits October 14, 2026 17:22
- `list_jobs`, `get_job`, `get_job_logs` (byte-offset pages) and
  `cancel_job` mirror the server's project job routes; responses derive
  Serialize.
- `start_remote_job` returns the queue response, including `job_num`
  when the server sends it.
- `ApiErrorCode::ComputeProviderJob` names a missing job.
- `start_remote_job` becomes `queue_job(namespace, project_name,
  compute_provider_group_name, digest, command)`, matching the route
  and the argument order of every other project method.
- `rust-version` is 1.97.0, the lowest toolchain that builds and tests
  the workspace; the client itself uses `File::lock`, stable since 1.89.
@jwric
jwric merged commit 8b909ba into main Oct 14, 2026
1 check passed
@jwric
jwric deleted the feat/jobs-api branch October 14, 2026 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants