trait sequential_task

Trait to execute tasks in steps with timeout management.

Methods

void
execute_step(mixed $key, mixed $value)

Callback function to execute a unit of work.

void
execute(config $config, array $data, string|null $counter_name = null)

Execute the tasks with timeout management.

Details

at line 30
abstract protected void execute_step(mixed $key, mixed $value)

Callback function to execute a unit of work.

Parameters

mixed $key

The array key.

mixed $value

The array value.

Return Value

void

at line 41
protected void execute(config $config, array $data, string|null $counter_name = null)

Execute the tasks with timeout management.

Parameters

config $config

Installer config.

array $data

Array of elements to iterate over.

string|null $counter_name

The name of the counter or null.

Return Value

void

Exceptions

resource_limit_reached_exception

When resources are exhausted.