Workflow Log

Description

workflow log

Allows to log the activity of a workflow with a pipeline.

A workflow log streams logging information from a running workflow to a pipeline.

The only requirement for the receiving pipeline is that it starts with a Workflow logging transform. Other than that, the logging pipeline is "just another pipeline". In this logging pipeline, you can process the logging information and e.g. write to a relational or NoSQL database, a Kafka topic etc

When changes take effect

A run reads the workflow logs once, when it first needs them, and every pipeline and workflow it starts uses what it read: the child pipelines of a Pipeline executor, the pipelines of a workflow, a mapping and so on. A run is a top-level pipeline or workflow, the one that Hop Run, Hop GUI, Hop Server or the API starts.

A workflow log that you add or change while a run is going on takes effect with the next run. This matters for runs that go on for a long time, such as a workflow that loops for hours or a streaming pipeline.

Samples

The samples project comes with an example workflow log.

Check the metadata perspective for the workflow log workflow-log-example. This workflow log is configured to send logging information for the workflow ${PROJECT_HOME}/reflection/generate-fake-books.hwf to the logging pipeline ${PROJECT_HOME}/reflection/workflow-log-example.hpl.

Workflow Log

Options

Option Default Description

Name

The name to be used for this workflow log

Enabled?

true

Logging parent workflow only

false

If you enable this, only the parent workflow, executed by Hop Run, GUI, Server or API will be logged. When disabled, every workflow execution will be logged.

Pipeline executed to capture logging

the pipeline to process the logging information for this workflow log

Execute at the start of the workflow?

true

Should this workflow log be executed at the start of a workflow run

Execute at the end of the workflow?

false

Should this workflow log be executed at the end of a workflow run

Execute periodically during execution?

true

Should this workflow log be executed periodically during a workflow run

Interval in seconds

30

if executed periodically, indicates the interval at which the workflow log is executed