Repository navigation
Closed
Labels
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? │ │ │ │
└──────────────────────┴───────────────────────────────────────────────────────┴───────────────────────────────────────────────────────┴───────────────────────────────────────────┘
Activity
garvit-arora commentedon Sep 29, 2026
Hi, I'd like to work on this issue. Plan: trap SIGINT/SIGTERM in the Java task runner (matching Go/TS SDK behavior), expose cancellation through
Contextso task code can cooperatively stop, and add regression tests. I'll open a PR shortly.