jroachgolf84 opened a new issue, #67200:
URL: https://github.com/apache/airflow/issues/67200

   ### Description
   
   Support `GetAssetStateByName` and `GetAssetStateByUri` mechanisms in the 
Task SDK for use in things like `BaseEventTrigger`'s, which don't have access 
to `context`.
   
   ```python
   from airflow.sdk import GetAssetStateByName
   
   # In child of BaseEventTrigger
   
   ...
   
   asset_state = GetAssetStateByName(name="<name>")
   ```
   
   ### Use case/motivation
   
   Allow for Asset State to be retrieved/set in `BaseEvenTrigger`, useful for 
Asset-watching.
   
   ### Related issues
   
   PR: https://github.com/apache/airflow/pull/66595#discussion_r3267338028
   
   ### Are you willing to submit a PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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