Skip to content

Commit

Permalink
rfc24: Add redirect event
Browse files Browse the repository at this point in the history
  • Loading branch information
chu11 committed Sep 27, 2019
1 parent 0fbfa75 commit bb12e2d
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions spec_24.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,42 @@ Example:
}
----

=== Redirect Event

The redirect event indicates that a stream's data has been redirected
away from the log. The caller should not expect any additional data
events in the log for that stream.

The following keys are REQUIRED in the event context object:

stream::
(string) The stream name (e.g. `stdout`, `stderr`). All valid stream
names MUST appear as keys in the header `encoding` object.

rank::
(string) An idset string (RFC 22) representing the rank(s) that are
redirecting output.

The following keys are OPTIONAL in the event context object:

path::
(string) Indicates the path data has been redirected to, if the data
has been redirected to a file.

Example:

[source,json]
----
{
"timestamp":1552593350.4,
"name":"redirect",
"context":{
"stream":"stdout",
"path":"job.output",
}
}
----

=== Log Event

The log event supports error and debug logging from the Flux shells.
Expand Down

0 comments on commit bb12e2d

Please sign in to comment.