Reputation: 2931
I have a use case where I need to input data from google Cloud Storage bucket as soon as its made available in the form of a new file in a storage bucket via Dataflow .
How do I trigger the execution of the Dataflow job as soon as the new data(file) becomes available or added to the storage bucket ?
Upvotes: 1
Views: 1913
Reputation: 14781
If your pipelines are written in Java, then you can use Cloud Functions and Dataflow templating.
I'm going to assume you're using 1.x SDK (it's also possible with 2.x)
See here for a walkthrough on how to build this pipeline. Full disclosure: I work for Shine.
Upvotes: 2