Reputation: 1027
I'm running a Dataflow Template of my own from a Cloud function and I would like to do something when Pipeline is over.
Is there an official way of doing it ?
I can't use the waitUntilFinish()
since my Cloud function won't last that long. So I need some kind of event, to trigger some other processes.
Pubsub sounds great but how to send a single message ?
Any idea would be great !
Upvotes: 2
Views: 1764
Reputation: 75735
The idea is the following.
resource.type="dataflow_step" textPayload="Worker pool stopped."
If nothing is returned, try this
resource.type="gce_instance_group"
resource.labels.instance_group_name:"dataflow-"
jsonPayload.event_subtype="compute.instanceGroups.removeInstances"
jsonPayload.event_type="GCE_OPERATION_DONE"
You should see only your end of dataflow
Upvotes: 4