shapepipe.pipeline.timeout

shapepipe.pipeline.timeout

TIMEOUT.

This module defines a function for handling job timeout limits.

Author

Samuel Farrens <samuel.farrens@cea.fr>

with_timeout(timeout, log_file)[source]

Timeout Limit Decorator.

This method provides a timeout decorator for a given input function.

Parameters
  • timeout (int) – Timeout limit in seconds

  • log_file (logging.Logger) – Logging instance

Raises

TimeoutError – For process exceeding timeout limit