@pre_load
def set_kubernetes_job_timeout(self, in_data, **kwargs):
    'Set kubernetes_job_timeout to a default value if not provided and validate the value.\n\n        Method receives the whole data dictionary but operates *only* on kubernetes_job_timeout.\n        Updated dictionary is returned.\n        '
    if ('kubernetes_job_timeout' not in in_data):
        try:
            in_data['kubernetes_job_timeout'] = int(REANA_KUBERNETES_JOBS_TIMEOUT_LIMIT)
        except (ValueError, TypeError):
            raise ValidationError(f"Default value of kubernetes_job_timeout is not an integer. Provided value is '{REANA_KUBERNETES_JOBS_TIMEOUT_LIMIT}'. Please contact the administrator.")
    job_timeout = in_data['kubernetes_job_timeout']
    try:
        job_timeout = int(job_timeout)
    except (ValueError, TypeError):
        raise ValidationError(f"kubernetes_job_timeout must be an integer. Provided value is '{job_timeout}'.")
    if (job_timeout <= 0):
        raise ValidationError(f'kubernetes_job_timeout must be greater than 0.Provided value is {job_timeout}.')
    try:
        max_value = int(REANA_KUBERNETES_JOBS_MAX_USER_TIMEOUT_LIMIT)
    except (ValueError, TypeError):
        raise ValidationError(f"Max value for kubernetes_job_timeout is not an integer. Provided value is '{REANA_KUBERNETES_JOBS_MAX_USER_TIMEOUT_LIMIT}'. Please contact the administrator.")
    if (job_timeout > max_value):
        raise ValidationError(f'kubernetes_job_timeout exceeds maximum allowed value of {max_value} seconds. Provided value is {job_timeout} seconds.')
    in_data['kubernetes_job_timeout'] = job_timeout
    return in_data
Set kubernetes_job_timeout to a default value if not provided and validate the value.

Method receives the whole data dictionary but operates *only* on kubernetes_job_timeout.
Updated dictionary is returned.
@pre_load
def set_kubernetes_job_timeout(self, in_data, **kwargs):
    'Set kubernetes_job_timeout to a default value if not provided and validate the value.\n\n        Method receives the whole data dictionary but operates *only* on kubernetes_job_timeout.\n        Updated dictionary is returned.\n        '
    if ('kubernetes_job_timeout' not in in_data):
        try:
            in_data['kubernetes_job_timeout'] = int(REANA_KUBERNETES_JOBS_TIMEOUT_LIMIT)
        except (ValueError, TypeError):
            raise ValidationError(f"Default value of kubernetes_job_timeout is not an integer. Provided value is '{REANA_KUBERNETES_JOBS_TIMEOUT_LIMIT}'. Please contact the administrator.")
    job_timeout = in_data['kubernetes_job_timeout']
    try:
        job_timeout = int(job_timeout)
    except (ValueError, TypeError):
        raise ValidationError(f"kubernetes_job_timeout must be an integer. Provided value is '{job_timeout}'.")
    if (job_timeout <= 0):
        raise ValidationError(f'kubernetes_job_timeout must be greater than 0.Provided value is {job_timeout}.')
    try:
        max_value = int(REANA_KUBERNETES_JOBS_MAX_USER_TIMEOUT_LIMIT)
    except (ValueError, TypeError):
        raise ValidationError(f"Max value for kubernetes_job_timeout is not an integer. Provided value is '{REANA_KUBERNETES_JOBS_MAX_USER_TIMEOUT_LIMIT}'. Please contact the administrator.")
    if (job_timeout > max_value):
        raise ValidationError(f'kubernetes_job_timeout exceeds maximum allowed value of {max_value} seconds. Provided value is {job_timeout} seconds.')
    in_data['kubernetes_job_timeout'] = job_timeout
    return in_data