@@ -653,14 +653,14 @@ as complete (and with the ``--flow`` option, if needed to make a specific
653
653
Task Event Handling
654
654
-------------------
655
655
656
- Task event handlers allow configured commands to run when task events occur.
656
+ Task event handlers allow configured commands to run when task events occur,
657
+ e.g. ``submitted `` and ``failed ``.
657
658
658
- .. note ::
659
-
660
- Cylc supports workflow events e.g. ``startup `` and ``shutdown ``
661
- and task events e.g. ``submitted `` and ``failed ``.
659
+ .. admonition :: Not to be confused with
660
+ :class: tip
662
661
663
- See also :ref: `user_guide.scheduler.workflow_event_handling `.
662
+ For *workflow * events, e.g. ``startup `` and ``shutdown ``, see
663
+ :ref: `user_guide.scheduler.workflow_event_handling `.
664
664
665
665
Event handlers can be used to send a message, raise an alarm, or whatever you
666
666
like. They can even call ``cylc `` commands to intervene in the workflow.
@@ -679,42 +679,53 @@ Event handlers can be stored in the workflow ``bin`` directory, or anywhere in
679
679
They should return quickly to avoid tying up the scheduler process pool -
680
680
see :ref: `Managing External Command Execution `.
681
681
682
+ .. _user_guide.runtime.task_event_handling.list :
682
683
683
- .. _user_guide.runtime.task_event_handling.event_specific_handlers :
684
-
685
- Event-Specific Handlers
686
- ^^^^^^^^^^^^^^^^^^^^^^^
684
+ List Of Task Events
685
+ ^^^^^^^^^^^^^^^^^^^
687
686
688
- Event-specific handlers are configured by ``<event> handlers ``
689
- under :cylc:conf: `[runtime][<namespace>][events] `, where ``<event> ``
690
- can be:
687
+ .. cylc-scope :: flow.cylc[runtime][<namespace>]
691
688
692
689
.. |br | raw :: html
693
690
694
691
<br>
695
692
696
-
697
693
.. table ::
698
694
699
695
========================================= ================================
700
696
Event Description
701
697
========================================= ================================
702
698
submitted job submitted
703
- submission retry job submission failed but will retry later
704
- submission failed job submission failed
699
+ submission retry job submission failed but will retry after the configured :cylc:conf: ` submission retry delays `
700
+ submission failed job submission failed and no retries are configured or remaining
705
701
started job started running
706
- retry job failed but will retry later
707
- failed job failed
702
+ retry job failed but will retry after the configured :cylc:conf: ` execution retry delays `
703
+ failed job failed and no retries are configured or remaining
708
704
succeeded job succeeded
709
- submission timeout job timed out in the ``submitted `` state
710
- execution timeout job timed out in the ``running `` state
705
+ submission timeout job exceeded the :cylc:conf: ` [events]submission timeout ` while in the ``submitted `` state
706
+ execution timeout job exceeded the :cylc:conf: ` [events]execution timeout ` while in the ``running `` state
711
707
warning scheduler received a message of severity WARNING from job
712
708
critical scheduler received a message of severity CRITICAL from job
713
709
custom scheduler received a message of severity CUSTOM from job |br | (note: literally, the word ``CUSTOM ``)
714
710
expired task expired and will not submit (too far behind)
715
711
late task running later than expected
716
712
========================================= ================================
717
713
714
+ Any of a task's :term: `custom outputs <custom output> ` are also valid event
715
+ names.
716
+
717
+ .. cylc-scope ::
718
+
719
+
720
+ .. _user_guide.runtime.task_event_handling.event_specific_handlers :
721
+
722
+ Event-Specific Handlers
723
+ ^^^^^^^^^^^^^^^^^^^^^^^
724
+
725
+ Event-specific handlers are configured by ``<event> handlers ``
726
+ under :cylc:conf: `[runtime][<namespace>][events] `, where ``<event> ``
727
+ can be any in the table above.
728
+
718
729
Values should be a list of commands, command lines, or command line templates
719
730
(see below) to call if the specified event is triggered.
720
731
@@ -730,8 +741,8 @@ Alternatively you can configure a list of generic event :cylc:conf:`handlers` to
730
741
for configured :cylc:conf: `handler events `.
731
742
732
743
:cylc:conf: `handler events `
733
- A list of events which may include any of the above
734
- events (e.g. ``submission failed `` or ``warning ``) or
744
+ A list of events which may include any of the events in the table above
745
+ (e.g. ``submission failed `` or ``warning ``) or
735
746
any of a task's :term: `custom outputs <custom output> `.
736
747
:cylc:conf: `handlers `
737
748
A list of commands to be run for these events.
0 commit comments