Skip to main content
GuideServerConfigure and deploy Tabsdata servers on your machine.TutorialsConfigure data integration workflows within a running Tabsdata server.API ReferenceCLI ReferenceRelease Notes
Version: 2.3.0

tdk plan diagnose

Diagnose why a plan did not succeed.

Reports the failed and retrying function runs, first failure first, each with its repair handles (the replay, recover and patch argv) and the error signature of its latest worker's log; the held runs with the failed runs that block them; and the root cause, the earliest failure, with its category. Exits 0 whenever the diagnosis is produced; the verdict is the plan's 'health'. A plan that is not found exits 5.

tdk plan diagnose \
--plan pln-3f9a2b \
--max-runs 5 \
--log-lines 200 \
--no-logs \
--format table \
--profile production
FlagTypeRequiredDescription
--planstringRequiredID of the plan to diagnose.
--max-runsstringOptionalThe most failed runs to report, first failure first; 0 for all. Defaults to 5.
--log-linesstringOptionalThe last lines of each worker log to include, with repeated blocks kept once and the excerpt capped at 4000 characters. Defaults to 200.
--no-logsflagOptionalDiagnose from statuses alone, without reading worker logs.
-o, --formattable | json | yamlOptionalOutput format. 'json' and 'yaml' give a listing as an array and table data as one object per row.
--profilestringOptionalProfile whose login and pinned project and collection this command uses; with no NAME, the default profile. Default: the profile set with 'tdk set --profile', else the default profile.