Hi team, Is it able to trigger an asset when a fil...
# ask-community
n
Hi team, Is it able to trigger an asset when a file is created on GCS bucket (with or without knowing its filename)? I couldn’t find a way to achieve this. Do you guys have any suggestions?
t
Hey Nut! Have you tried using a sensor to poll the GCS API for changes? We document a similar pattern here. Would just have to replace it with querying GCS.
n
I’ve seen this before but I couldn’t find the function below or similar function for dagster-gcp in API Docs
Copy code
from dagster_aws.s3.sensor import get_s3_keys
So, I still have no idea on how to use it, could u guide me a bit?
t
Yeah,
dagster-gcp
doesn't have it, so you'd have to query the GCS API yourself to do it. ie. possible use this endpoint
🫡 1