Skip to content

fix: ensure taskKind is always populated in getTaskQueueInfo#2

Open
deepshekhardas wants to merge 2 commits into
mainfrom
fix/pr-3542-sessions
Open

fix: ensure taskKind is always populated in getTaskQueueInfo#2
deepshekhardas wants to merge 2 commits into
mainfrom
fix/pr-3542-sessions

Conversation

@deepshekhardas

@deepshekhardas deepshekhardas commented May 12, 2026

Copy link
Copy Markdown
Owner

Fixes the early-return path when both queue override and TTL are provided - previously AGENT/SCHEDULED runs were being misclassified as STANDARD in ClickHouse. Also fixes no-worker-found and no-task-found fallbacks to include taskKind.


Summary by cubic

Ensures getTaskQueueInfo always sets taskKind, fixing misclassified AGENT/SCHEDULED runs as STANDARD in ClickHouse and improving fallbacks.

  • Bug Fixes
    • Correct early-return when both a queue override and TTL are provided so taskKind is preserved.
    • Include taskKind in “no worker found” and “no task found” fallbacks to maintain accurate ClickHouse classification.

Written for commit 1ee2dd8. Summary will update on new commits.

ericallam and others added 2 commits May 11, 2026 10:08
Adds Sessions, a durable, run-aware stream primitive that scopes
session.in / session.out records to a session (not a single run).
Records survive run boundaries; reconnect-from-last-event-id is built in.

Server foundation:
- New /realtime/v1/sessions/:session/:io/append + /records routes
- sessionRunManager + sessionsRepository + clickhouseSessionsRepository
- mintRunToken for short-lived per-session tokens
- s2Append retry-with-backoff + undici cause diagnostics
- /api/v[12]/packets/* exempt from customer rate limits
- BackgroundWorker schema gains taskKind enum (TASK, AGENT, SCHEDULED)
- TaskRun.taskKind column + clickhouse 029_add_task_kind_to_task_runs_v2

Core types:
- new sessionStreams, inputStreams, realtimeStreams packages in @trigger.dev/core
- session-streams-api / realtime-streams-api surface

Sessions dashboard UI (the primitive's own viewer):
- /sessions index + detail routes
- SessionsTable, SessionFilters, SessionStatus, CloseSessionDialog
- AGENT/SCHEDULED filter in RunFilters + TaskTriggerSource

Includes the sessions-primitive changeset.
- Fix early-return path when both queue override and TTL are provided
- Fix no-worker-found fallback to query taskKind
- Fix no-task-found fallback to include taskKind

This ensures AGENT/SCHEDULED runs are correctly classified in ClickHouse.
id: release
uses: softprops/action-gh-release@v1
if: github.event_name == 'push'
uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants