This flow will never launch the t2 task since it is disabled.

yaml
id: disable-simple
namespace: io.kestra.demo

description: |
  This flow will never launch the `t2` task since it is disabled.

tasks:
- id: t1
  type: io.kestra.core.tasks.debugs.Echo
  format: first {{task.id}}
  level: TRACE
- id: t2
  type: io.kestra.core.tasks.debugs.Echo
  format: second {{task.type}}
  level: WARN
  disabled: true
- id: t3
  type: io.kestra.core.tasks.debugs.Echo
  format: third {{flow.id}}
  level: ERROR