Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 792 Bytes

stat_counter_task.md

File metadata and controls

39 lines (26 loc) · 792 Bytes

StatCounterTask

Counts the number of times the task is executed and logs the total (info level) when the process ends. The input is passed to the output, so the task can be placed anywhere in a branch.

Task reference

  • Service: CleverAge\ProcessBundle\Task\Reporting\StatCounterTask
  • Code: stat_counter (task: stat_counter)

Accepted inputs

any: only the number of executions matters.

Possible outputs

any: the input, unchanged.

At finalization, the message Processed item count: <count> is logged, also when the process fails.

Options

This task has no option.

Examples

  • Count the lines written by a process
# Task configuration level
count:
  task: stat_counter