You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow Dataflow flex template jobs to be updated (#3069)
* Allow Dataflow flex template jobs to be updated
* Update Flex Template tests to run a real job
* Add test for updating flex template streaming jobs
* Use resourceSchema parameter in resourceDataflowJobIsVirtualUpdate
Co-authored-by: Andre Marianiello <[email protected]>
returnresource.NonRetryableError(fmt.Errorf("the job with ID %q has terminated with state %q instead of expected state %q", jobID, state, targetState))
204
+
} else {
205
+
log.Printf("[DEBUG] the job with ID %q has state %q.", jobID, state)
206
+
returnresource.RetryableError(fmt.Errorf("the job with ID %q has state %q, waiting for %q", jobID, state, targetState))
207
+
}
208
+
})
209
+
}
210
+
211
+
// resourceDataflowFlexTemplateJobUpdate updates a Flex Template Job resource.
"description": "An Apache Beam streaming pipeline that reads JSON encoded messages from Pub/Sub, uses Beam SQL to transform the message data, and writes the results to a BigQuery",
142
-
"name": "Streaming Beam SQL",
143
-
"parameters": [
144
-
{
145
-
"helpText": "Pub/Sub subscription to read from.",
146
-
"label": "Pub/Sub input subscription.",
147
-
"name": "inputSubscription",
148
-
"regexes": [
149
-
"[-_.a-zA-Z0-9]+"
150
-
]
151
-
},
152
-
{
153
-
"helpText": "BigQuery table spec to write to, in the form 'project:dataset.table'.",
"description": "An Apache Beam streaming pipeline that reads JSON encoded messages from Pub/Sub, uses Beam SQL to transform the message data, and writes the results to a BigQuery",
214
-
"name": "Streaming Beam SQL",
215
-
"parameters": [
216
-
{
217
-
"helpText": "Pub/Sub subscription to read from.",
218
-
"label": "Pub/Sub input subscription.",
219
-
"name": "inputSubscription",
220
-
"regexes": [
221
-
"[-_.a-zA-Z0-9]+"
222
-
]
223
-
},
224
-
{
225
-
"helpText": "BigQuery table spec to write to, in the form 'project:dataset.table'.",
226
-
"is_optional": true,
227
-
"label": "BigQuery output table",
228
-
"name": "outputTable",
229
-
"regexes": [
230
-
"[^:]+:[^.]+[.].+"
231
-
]
232
-
}
233
-
]
234
-
},
235
-
"sdkInfo": {
236
-
"language": "JAVA"
237
-
}
238
-
}
239
-
EOF
188
+
data "google_storage_bucket_object" "flex_template" {
0 commit comments