Skip to content

Commit

Permalink
Enabling variables to control job batch limits
Browse files Browse the repository at this point in the history
  • Loading branch information
mramireztgtg committed Dec 11, 2024
1 parent ee7093c commit 4bf1c49
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ module "metaflow-computation" {
launch_template_http_endpoint = var.launch_template_http_endpoint
launch_template_http_tokens = var.launch_template_http_tokens
launch_template_http_put_response_hop_limit = var.launch_template_http_put_response_hop_limit
job_state_time_limit_action = var.job_state_time_limit_action
job_state_time_limit_timeout = var.job_state_time_limit_timeout
job_state_time_limit_reason = var.job_state_time_limit_reason


standard_tags = var.tags
}
Expand Down
15 changes: 15 additions & 0 deletions modules/computation/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,18 @@ variable "launch_template_image_id" {
nullable = true
default = null
}

variable "job_state_time_limit_action" {
type = string
description = "The action to take when the job times out"
}

variable "job_state_time_limit_timeout" {
type = number
description = "The time limit in seconds for the job to run before the action is taken"
}

variable "job_state_time_limit_reason" {
type = number
description = "The reason for the job state time limit action"
}
15 changes: 15 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -199,3 +199,18 @@ variable "enable_key_rotation" {
description = "Enable key rotation for KMS keys"
default = false
}

variable "job_state_time_limit_action" {
type = string
description = "The action to take when the job times out"
}

variable "job_state_time_limit_timeout" {
type = number
description = "The time limit in seconds for the job to run before the action is taken"
}

variable "job_state_time_limit_reason" {
type = number
description = "The reason for the job state time limit action"
}

0 comments on commit 4bf1c49

Please sign in to comment.