Skip to content

Relationships Between Plans

Tag

Keyword: tag, followed by a string or a list of strings.

A plan with tag: tag_name makes tag_name available to other plans when triggered, usable via except, start_if, stop_if, del_if, delay_if, if, etc.

  tag: workday

Multiple tags:

  tag: [workday, a_week, a_month]

Built-in Conditions

Conditions prefixed with __ are built-in. It is recommended that user-defined tags do not start with double underscores, as this may conflict with built-in conditions and cause unexpected behavior.

You can check the status of other tasks. Currently supported: - __tag_is_del — fires when the task is about to be deleted - __tag_is_off — fires whenever the task is in a disabled state - __tag_is_on — fires whenever the task is in an enabled state - __tag_is_delay — fires whenever the task is in a delayed state

Replace tag with the actual value when using:

- desc: One-shot task
  on: 8-6
  tag: one_time
- desc: Reminder
  if: __one_time_is_del

Every time a plan with the tag one_time is deleted, the "Reminder" plan fires. If multiple plans share the one_time tag, the reminder fires when any one of them is deleted.