Skip to content

Commit b8d8951

Browse files
committed
Tweak for workflow_state xtrigger retun value.
1 parent df6b80e commit b8d8951

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/user-guide/writing-workflows/external-triggers.rst

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,13 @@ this:
166166
.. code-block:: python
167167
168168
results = {
169-
'workflow_id': workflow_id,
170-
'task_id': task_id,
171-
'task_selector': task_selector,
172-
'flow_num': flow_num,
169+
'workflow': workflow_id,
170+
'task': task_name,
171+
'point': cycle_point,
172+
'status': task_status, # or
173+
'trigger': task_output_trigger, # or
174+
'message': task_output_message,
175+
'flow_num': flow_num # if given
173176
}
174177
return (satisfied, results)
175178
@@ -189,10 +192,10 @@ To see this, take a look at the job script for one of the downstream tasks:
189192
# TASK RUNTIME ENVIRONMENT:
190193
export upstream_workflow upstream_cylc_run_dir upstream_offset \
191194
upstream_message upstream_status upstream_point upstream_task
192-
upstream_workflow_id="up"
193-
upstream_task_id="2011/foo"
194-
upstream_selector="succeeded"
195-
upstream_flow_num="1"
195+
upstream_workflow="up"
196+
upstream_task="foo"
197+
upstream_point="2011"
198+
upstream_status="succeeded"
196199
}
197200
...
198201

0 commit comments

Comments
 (0)