【问题标题】:How to pass glue job retry count number as parameters如何将胶水作业重试次数作为参数传递
【发布时间】:2023-02-07 16:41:31
【问题描述】:

如果作业失败,我已将胶水作业配置为运行 3 次。有没有办法像那样传递重试次数 1、2 或 3。我正在通过 terraform 创建粘合作业,我想通过默认参数传递如下所示的重试计数。

1 Failed retry = 1 (pass 1 as parameter if attempting first retry)
2 failed retry = 2 (pass 2 as parameter if attempting first retry)
3 failed retry = 3 (pass 3 as parameter if attempting first retry) 

【问题讨论】:

  • 好的,那么您当前的 TF 代码是什么,为什么它不起作用?有什么错误吗?

标签: amazon-web-services terraform aws-glue


【解决方案1】:

最大重试次数是一个可选参数,它设置失败时重试此作业的最大次数。

resource "aws_glue_job" "bidb-cdc-data-load-glue-job" {
  name     = "bidb-cdc-data-load-glue-job"
  role_arn = var.glue_s3_redshift_access_role
  connections = [ "bidb-dev-datawarehouse-core-redshift-glue-connection" ]
  default_arguments = {
    "--Secret"               = var.redshift_credentials_parameter_store
  max_retries=1

【讨论】:

  • 请正确格式化代码块,您缺少一对右大括号。
猜你喜欢
  • 2019-11-08
  • 2021-06-13
  • 2015-05-06
  • 1970-01-01
  • 2021-08-22
  • 2020-08-03
  • 2015-09-10
  • 2012-07-03
  • 1970-01-01
相关资源
最近更新 更多