apache / apache/airflow

Make Java SDK context signal-aware

Open
#72,680 0 comments 0 reactions 1 assignee Claimed by @jason810496 View on GitHub
area:java-sdk type:improvement
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

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.