| 1 |
[meta] |
| 2 |
title = "Test for Github Issue 1893" |
| 3 |
description = """Cycle-point specific external triggering in a date-time |
| 4 |
cycling workflow. The workflow will time out and abort if the ext trigger fails.""" |
| 5 |
|
| 6 |
[scheduler] |
| 7 |
cycle point format = %Y |
| 8 |
[[events]] |
| 9 |
abort on stall timeout = True |
| 10 |
stall timeout = PT30S |
| 11 |
[scheduling] |
| 12 |
initial cycle point = 2020 |
| 13 |
final cycle point = 2020 |
| 14 |
[[special tasks]] |
| 15 |
external-trigger = ext("cheese on toast for $CYLC_TASK_CYCLE_POINT") |
| 16 |
[[graph]] |
| 17 |
P1Y = ext & trig |
| 18 |
[runtime] |
| 19 |
[[ext]] |
| 20 |
# Externally triggered task. |
| 21 |
script = echo $CYLC_EXT_TRIGGER_ID |
| 22 |
[[trig]] |
| 23 |
# Task to do the "external" triggering. |
| 24 |
script = cylc ext-trigger $CYLC_WORKFLOW_ID \ |
| 25 |
"cheese on toast for $CYLC_TASK_CYCLE_POINT" "blarghh!" |