flyteorg / flyteorg/flyte

[Core feature] Add timeout to ContainerTask

Open
#6,351 6 comments 0 reactions 1 assignee Claimed by @lalala-h View on GitHub
enhancement good first issue help wanted
Dominant language
Go
Stars
7.5k
Forks
886
Avg merge
1d 14h
Merged PRs (30d)
120

Description

### Motivation: Why do you think this is important?

For regular python tasks the user can set a timeout by passing `timeout` in the `@task` decorator. I think the same should be possible for `ContainerTask`s.

### Goal: What should the final outcome look like, ideally?

e.g. `ContainerTask(..., timeout=timedelta(seconds=60)` should set a 60 second timeout

### Describe alternatives you've considered

I think it could be done via `PodTemplate`s atm but that seems overkill for something like this.

### Propose: Link/Inline OR Additional context

_No response_

### Are you sure this issue hasn't been raised already?

- [x] Yes

### Have you read the Code of Conduct?

- [x] Yes

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.