airflow GoogleCloudStorageObjectSensor with wildcard not working file*.xml

Viewed 395

I wanted to use filemask in the GoogleCloudStoragePrefixSensor. I cant use the GoogleCloudStoragePrefixSensor because I also need to see the ending oif the file mask. BAsically my file is like "tv_link_input_*.xml". So, tried using GoogleCloudStorageObjectSensor, but its keep running without any OP. Using airflow 1.10.14. Code

check_file_gcs = GoogleCloudStorageObjectSensor(
            task_id='check_file_gcs',  
            bucket=source_bucket,
            object="processing/tv_link_input_*xml",
            poke='10',
            dag=dag
            )

Thanks

0 Answers
Related