Make Java SDK context signal-aware
- Dominant language
- Python
- Stars
- 46.9k
- Forks
- 17.8k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 472
Description
```
┌──────────────────────┬───────────────────────────────────────────────────────┬───────────────────────────────────────────────────────┬───────────────────────────────────────────┐
│ │ Go │ TS │ JVM │
├──────────────────────┼───────────────────────────────────────────────────────┼───────────────────────────────────────────────────────┼───────────────────────────────────────────┤
│ context object │ sdk.TIRunContext embeds context.Context │ TaskContext with readonly signal: AbortSignal │ data class Context(dagRun, ti) — nothing │
│ │ │ │ else │
├──────────────────────┼───────────────────────────────────────────────────────┼───────────────────────────────────────────────────────┼───────────────────────────────────────────┤
│ cancellation source │ signal.NotifyContext(ctx, SIGINT, SIGTERM) — │ AbortController over ["SIGTERM","SIGINT"] — │ none found in the whole sdk module │
│ │ server.go:89 │ runtime.ts:149 │ │
├──────────────────────┼───────────────────────────────────────────────────────┼───────────────────────────────────────────────────────┼───────────────────────────────────────────┤
│ reaches the task │ yes — task.Execute(ctx, …) │ yes — ctx.signal │ no │
│ body? │ │ │ │
└──────────────────────┴───────────────────────────────────────────────────────┴───────────────────────────────────────────────────────┴───────────────────────────────────────────┘
```
Contributor guide
Assessment
This issue has not been assessed yet.