Recycle Interval Of Processing Workers (Environment setting)

Tools that honor the Recycle Interval Of Processing Workers environment define how many image sections will be processed before restarting worker processes to prevent potential failures in long-running processes.

Usage notes

  • Stopping and restarting a worker process can recover analysis jobs.
  • When a single raster analysis job is divided to multiple sections for parallel workers to process, some random failures can occur if a single worker has processed many sections continuously. This environment setting allows you to set a duration to restart worker processes. The duration is the number of sections continuously processed by the worker.

Dialog syntax

Define how many image sections will be processed before restarting worker processes to prevent potential failures in long-running processes.

  • Recycle Interval Of Processing Workers—Set the number of image sections to be processed before stopping the process and starting new worker processes. The default is 0.

Scripting syntax

arcpy.env.recycleProcessingWorkers = recycle_processing_workers

ParameterExplanation

recycleProcessingWorkers

Define how many image sections will be processed before restarting worker processes. The default value is 0.

recycleProcessingWorkers syntax

Script example

import arcpy

# Set the number of to be processed before stopping and starting new worker 
# processes to 5
arcpy.env.recycleProcessingWorkers = 5

Related topics