seanghaeli commented on PR #75521:
URL: https://github.com/apache/airflow/pull/75521#issuecomment-6407978946

   @jroachgolf84 here's the dag I tested with:
   
   ```
   from airflow.providers.amazon.aws.triggers.s3 import S3KeyUpdateTrigger
   from airflow.providers.standard.operators.empty import EmptyOperator
   from airflow.sdk import DAG, Asset, AssetWatcher
   
   
   def watcher(name):
       return AssetWatcher(
           name=name, trigger=S3KeyUpdateTrigger(bucket_name="my-bucket", 
bucket_key="c.txt", poke_interval=2)
       )
   
   
   asset_x = Asset(name="asset_x", uri="s3://my-bucket/x", 
watchers=[watcher("wx")])
   asset_y = Asset(name="asset_y", uri="s3://my-bucket/y", 
watchers=[watcher("wy")])
   
   with DAG("shared_watcher_demo", schedule=[asset_x, asset_y]):
       EmptyOperator(task_id="t")
   ```
   
   Make sure you've pulled in https://github.com/apache/airflow/pull/74293


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to