当我更新文档时,更新文档字段始终会超过30秒, 我在python API中使用了刷新参数,但是失败了
使用refresh = True
# Login with AppRole
path "auth/approle/login" {
capabilities = [ "create", "read" ]
}
path "aws/sts/*" {
capabilities = [ "read", "update" ]
}
path "secret/aws/*" {
capabilities = ["read"]
}
path "aws/creds/*" {
capabilities = [ "read", "update" ]
}
stage('terraform plan') {
steps {
script {
wrap([$class: 'VaultBuildWrapper', configuration:
utility_vault_approle_config(), vaultSecrets:
utility_vault_secrets(env.VAULT_ROLE_NAME)]) {
withCredentials([string(credentialsId: 'VAULTTFTOKEN',
variable: 'VAULT_TOKEN')]) {
sh "~/bin/aws sts get-caller-identity"
sh "${env.TERRAFORM_HOME} plan "
}
如何在python-elasticsearch update_by_query API中使用刷新