microsoft / microsoft/tyger

Add ability to auto-cancel a run

Open
#340 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
74
Forks
23
Avg merge
6d 16h
Merged PRs (30d)
7

Description

We found a use case where we'd like to stream to/from Tyger using tyger run exec, but also have the ability to cancel the run if necessary. This can be accomplished by parsing the output of tyger run exec to learn the run_id, then issuing a cancellation command, but it could also happen automatically.

For example, tyger run exec --cancel-on-exit could fully cancel and reap the run if the process is killed by interrupt.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the implementation of the tyger run exec command and review how it obtains the run_id and how run cancellation and reaping are invoked. Run the command with a controlled interrupt to understand the current behavior. Done means --cancel-on-exit causes the associated run to be fully canceled and reaped when the process is interrupted.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.