# Test holding a task that hasn't spawned yet.
[scheduler]
    [[events]]
        inactivity timeout = PT1M
        abort on inactivity timeout = True
[scheduling]
    [[graph]]
        R1 = "holder => holdee & stopper"
[runtime]
    [[holder]]
        script = """
            cylc hold "$CYLC_WORKFLOW_ID//1/holdee"
        """
    [[holdee]]
        script = true
    [[stopper]]
        script = """
            cylc__job__poll_grep_workflow_log "\[1/holdee.* holding \(as requested earlier\)" -E
            cylc stop $CYLC_WORKFLOW_ID
        """
