flytekit.experimental.map_task#

flytekit.experimental.map_task(task_function, concurrency=0, min_success_ratio=1.0, **kwargs)[source]#

Map task that uses the ArrayNode construct..

Important

This is an experimental drop-in replacement for map_task().

Parameters
  • task_function (flytekit.core.python_function_task.PythonFunctionTask) – This argument is implicitly passed and represents the repeatable function

  • concurrency (int) – If specified, this limits the number of mapped tasks than can run in parallel to the given batch size. If the size of the input exceeds the concurrency value, then multiple batches will be run serially until all inputs are processed. If left unspecified, this means unbounded concurrency.

  • min_success_ratio (float) – If specified, this determines the minimum fraction of total jobs which can complete successfully before terminating this task and marking it successful.