Skip to content

docs(flyte-sdk-run): add trigger CLI lifecycle cookbook - #32

Open
BadToast wants to merge 1 commit into
flyteorg:mainfrom
BadToast:docs/trigger-cli-cookbook
Open

docs(flyte-sdk-run): add trigger CLI lifecycle cookbook#32
BadToast wants to merge 1 commit into
flyteorg:mainfrom
BadToast:docs/trigger-cli-cookbook

Conversation

@BadToast

@BadToast BadToast commented Aug 5, 2026

Copy link
Copy Markdown

Summary

Adds a Managing Triggers section to flyte-sdk-run/SKILL.md covering the
full trigger lifecycle via the flyte CLI:

  • flyte create trigger — with cron
  • flyte update trigger --deactivate — pause without deregistering
  • flyte update trigger --activate — resume
  • flyte delete trigger — permanent removal
  • A callout for the positional-arg-order inversion between create and
    update/delete (the CLI itself has this inconsistency; documenting it
    saves users a debugging round-trip).

Motivation

The flyte-sdk-run skill's description already advertises "manages run
lifecycle" and its trigger words include cancel, abort, and run metadata,
but trigger-lifecycle CLI recipes are missing. The only trigger CLI mention
in any of the 10 SDK skills is one flyte create trigger example in
flyte-sdk-agent/SKILL.md (in an agent-scheduling context), and it doesn't
cover deactivate / reactivate / delete.

Verification

CLI argument order was cross-checked against flyte 2.5.15:

  • flyte create trigger --helpUsage: flyte create trigger [OPTIONS] TASK_NAME NAME
  • flyte update trigger --helpUsage: flyte update trigger [OPTIONS] NAME TASK_NAME
  • flyte delete trigger --helpUsage: flyte delete trigger [OPTIONS] NAME TASK_NAME

All new examples use flytesnacks / development as the project / domain,
consistent with the rest of flyte-sdk-run/SKILL.md. No tenant identifiers.

Placement

Inserted between the existing ## Re-running Runs and ## Running Tasks (vs Workflows) sections — thematically continues the run-lifecycle progression
(one-off run → re-run → recurring/scheduled run).

Add a `Managing Triggers` section covering create / deactivate / re-activate /
delete lifecycle recipes with the `flyte {create,update,delete} trigger`
family, plus a callout for the positional-argument-order inversion between
`create` (TASK_NAME NAME) and `update`/`delete` (NAME TASK_NAME).

Zero coverage of `flyte update trigger --activate/--deactivate` or
`flyte delete trigger` currently exists across any of the 10 SDK skills;
`flyte-sdk-agent` has a single `create trigger` example in an agent-specific
context, but the full lifecycle recipes aren't documented anywhere.

Verified against flyte 2.5.15.
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.

1 participant