Count the number of times the task is processed and continue every N iteration (skip the rest of the time)
Flush at the end with the actual count.
- Service:
CleverAge\ProcessBundle\Task\CounterTask
any, must implement IterableTaskInterface
int: outputs the number of times the counter is called
| Code | Type | Required | Default | Description |
|---|---|---|---|---|
flush_every |
int |
X | The period at which the task will produce outputs |
# Task configuration level
code:
service: '@CleverAge\ProcessBundle\Task\CounterTask'
options:
flush_every: 2