Module Values.JobStateTimeLimitActionSource

Specifies an action that Batch will take after the job has remained at the head of the queue in the specified state for longer than the specified time.

Sourcetype nonrec t = {
  1. reason : String_.t;
    (*

    The reason to log for the action being taken.

    *)
  2. state : JobStateTimeLimitActionsState.t;
    (*

    The state of the job needed to trigger the action. The only supported value is RUNNABLE.

    *)
  3. maxTimeSeconds : Integer.t;
    (*

    The approximate amount of time, in seconds, that must pass with the job in the specified state before the action is taken. The minimum value is 600 (10 minutes) and the maximum value is 86,400 (24 hours).

    *)
  4. action : JobStateTimeLimitActionsAction.t;
    (*

    The action to take when a job is at the head of the job queue in the specified state for the specified period of time. For job queues connected to a ECS, FARGATE or EKS compute environment, the only supported value is CANCEL, which will cancel the job. For job queues connected to a SAGEMAKER_TRAINING service environment, the only supported value is TERMINATE, which will terminate the job.

    *)
}
Sourceval context_ : string
Sourceval make : reason:String_.t -> state:JobStateTimeLimitActionsState.t -> maxTimeSeconds:Integer.t -> action:JobStateTimeLimitActionsAction.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Integer of Integer.t | `String of String_.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t