Toggle
Toggle
yaml
type: "io.kestra.plugin.kestra.triggers.Toggle"Examples
yaml
id: trigger_toggle
namespace: company.team
inputs:
- id: toggle
type: BOOL
defaults: true
tasks:
- id: if
type: io.kestra.plugin.core.flow.If
condition: "{{inputs.toggle}}"
then:
- id: enable
type: io.kestra.plugin.kestra.triggers.Toggle
trigger: schedule
enabled: true
else:
- id: disable
type: io.kestra.plugin.kestra.triggers.Toggle
trigger: schedule
enabled: false
- id: log
type: io.kestra.plugin.core.log.Log
message: Hello World
triggers:
- id: schedule
type: io.kestra.plugin.core.trigger.Schedule
cron: "* * * * *"
Properties
auth Non-dynamic
Definitions
io.kestra.plugin.kestra.AbstractKestraTask-Auth
apiTokenstring
passwordstring
usernamestring
enabled booleanstring
Default
false