Not
Not
yaml
type: "io.kestra.plugin.core.condition.Not"Examples
yaml
id: schedule_condition_not
namespace: company.team
tasks:
- id: log_message
type: io.kestra.plugin.core.log.Log
message: "This flow will execute on all days except Sunday at 11am."
triggers:
- id: schedule
type: io.kestra.plugin.core.trigger.Schedule
cron: "0 11 * * *"
conditions:
- type: io.kestra.plugin.core.condition.Not
conditions:
- type: io.kestra.plugin.core.condition.DayWeek
dayOfWeek: "SUNDAY"
Properties
conditions *RequiredNon-dynamic
Min items
1 Definitions
Condition to allow events between two specific datetime values.
afterstring
Format
date-timebeforestring
Format
date-timedatestring
Default
{{ trigger.date }}typeobject
Condition to allow events on a particular day of the week.
dayOfWeek*Requiredstring
Possible Values
MONDAYTUESDAYWEDNESDAYTHURSDAYFRIDAYSATURDAYSUNDAYdatestring
Default
{{ trigger.date }}typeobject
Condition to execute tasks on a specific day of the week relative to the current month (first, last, ...)
dayInMonth*Requiredstring
Possible Values
FIRSTLASTSECONDTHIRDFOURTHdayOfWeek*Requiredstring
Possible Values
MONDAYTUESDAYWEDNESDAYTHURSDAYFRIDAYSATURDAYSUNDAYdatestring
Default
{{ trigger.date }}typeobject
Condition for a specific flow of an execution.
flowId*Requiredstring
namespace*Requiredstring
typeobject
Condition that checks labels of an execution.
labels*Requiredarrayobject
typeobject
Condition for an execution namespace.
namespace*Requiredstring
comparisonstring
Possible Values
EQUALSPREFIXSUFFIXprefixbooleanstring
Default
falsetypeobject
Condition based on the outputs of an upstream execution.
expression*Requiredbooleanstring
typeobject
Condition based on execution status.
inarray
SubTypestring
Possible Values
CREATEDSUBMITTEDRUNNINGPAUSEDRESTARTEDKILLINGSUCCESSWARNINGFAILEDKILLEDCANCELLEDQUEUEDRETRYINGRETRIEDSKIPPEDBREAKPOINTRESUBMITTEDnotInarray
SubTypestring
Possible Values
CREATEDSUBMITTEDRUNNINGPAUSEDRESTARTEDKILLINGSUCCESSWARNINGFAILEDKILLEDCANCELLEDQUEUEDRETRYINGRETRIEDSKIPPEDBREAKPOINTRESUBMITTEDtypeobject
Condition based on variable expression.
expression*Requiredstring
typeobject
Condition for a specific flow. Note that this condition is deprecated, use `io.kestra.plugin.core.condition.ExecutionFlow` instead.
flowId*Requiredstring
namespace*Requiredstring
typeobject
Condition for a flow namespace.
namespace*Requiredstring
prefixboolean
Default
falsetypeobject
Condition that matches if any taskRun has retry attempts.
inarray
SubTypestring
Possible Values
CREATEDSUBMITTEDRUNNINGPAUSEDRESTARTEDKILLINGSUCCESSWARNINGFAILEDKILLEDCANCELLEDQUEUEDRETRYINGRETRIEDSKIPPEDBREAKPOINTRESUBMITTEDnotInarray
SubTypestring
Possible Values
CREATEDSUBMITTEDRUNNINGPAUSEDRESTARTEDKILLINGSUCCESSWARNINGFAILEDKILLEDCANCELLEDQUEUEDRETRYINGRETRIEDSKIPPEDBREAKPOINTRESUBMITTEDtypeobject
Run a flow if the list of preconditions is met in a time window.
conditions*Requiredobject
id*Requiredstring
Validation RegExp
^[a-zA-Z0-9][a-zA-Z0-9_-]*Min length
1resetOnSuccessboolean
Default
truetimeWindow
Default
{
"type": "DURATION_WINDOW"
}io.kestra.core.models.triggers.TimeWindow
deadlinestring
Format
partial-timeendTimestring
Format
partial-timestartTimestring
Format
partial-timetypestring
Default
DURATION_WINDOWPossible Values
DAILY_TIME_DEADLINEDAILY_TIME_WINDOWDURATION_WINDOWSLIDING_WINDOWwindowstring
Format
durationwindowAdvancestring
Format
durationtypeobject
windowDeprecatedstring
Format
durationwindowAdvanceDeprecatedstring
Format
durationCondition to have at least one condition validated.
conditions*Required
Min items
1typeobject
Condition to allow events on public holidays.
countrystring
datestring
Default
{{ trigger.date}}subDivisionstring
typeobject
Condition to allow events between two specific times.
afterstring
Format
timebeforestring
Format
timedatestring
Default
{{ trigger.date }}typeobject
Condition to allow events on weekend.
datestring
Default
{{ trigger.date }}typeobject