acoustic-carpenter-78188
07/30/2026, 8:34 PMTrigger.get_details fetches details
Pull request opened by jmonty42
Why are the changes needed?
Trigger.get_details() raises TypeError on every call:
TypeError: TriggerDetails.get() missing 1 required keyword-only argument: 'task_name'
A trigger is identified by TriggerName{name, task_name, org, project, domain} — the trigger name
alone is not unique — and TriggerDetails.get requires both halves as keyword-only arguments.
Trigger.get_details passes only name, so the call fails before it ever reaches the backend.
Found while fixing #1343; it is off the flyte get trigger code path (the CLI goes through
Trigger.get), so it was left for a separate PR.
What changes were proposed in this pull request?
Pass task_name alongside name, sourcing both from the existing Trigger.name / Trigger.task_name
properties rather than reaching into self.pb2.id.name directly, and assign the result straight to
self.details instead of via a temporary.
How was this patch tested?
• New `tests/flyte/remote/test_trigger_get_details.py`: asserts the request carries both name and
task_name (plus org/project/domain), that the fetched details are cached so a second call issues
no further request, and that preloaded details short-circuit the fetch entirely. Two of the three
fail with TypeError on main.
• pytest tests/flyte/remote tests/flyte/cli tests/flyte/internal/runtime/test_trigger_serde.py —
544 passed.
• ruff format --check, ruff check, mypy, and ty check clean on the changed files.
Labels
fixed
Check all the applicable boxes
• I updated the documentation accordingly.
• All new and existing tests passed.
• All commits are signed-off.
Related PRs
• #1343 — fixes the trigger-automation rendering crash in the same module.
flyteorg/flyte-sdkacoustic-carpenter-78188
07/31/2026, 7:31 PM