-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose "meta" model config dictionary on TaskInstance
#698
Comments
🤖 Hello @wseaton, I'm Dosu, a friendly bot assisting with the Cosmos repository. I'm here to help you navigate through issues, answer your questions, and guide you on your contribution journey while we wait for a human maintainer. I'm currently reviewing your issue regarding the exposure of the "meta" model config dictionary on |
🤖 Hello @wseaton, I'm Dosu, a bot that is here to assist you with Cosmos repository. I'm designed to help with bug resolution, answer queries, and guide you on how to contribute to this project. While we wait for a human maintainer, feel free to ask me anything related to the repository. Based on the current state of the Cosmos repository, there isn't a built-in mechanism to attach metadata to the As for accessing the However, it's possible to extend the functionality of Cosmos to include this feature. You could potentially modify the Please note that this is just a suggestion and might not be the best solution for your specific use case. It's also possible that there's a better solution that I wasn't able to find. If you need further assistance, please provide more details about your setup and requirements. SourcesThis response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Hi, @wseaton, I'm helping the Cosmos team manage their backlog and am marking this issue as stale. From what I understand, the issue requests the exposure of the "meta" model config dictionary on Could you please confirm if this issue is still relevant to the latest version of the Cosmos repository? If it is, please let the Cosmos team know by commenting on the issue. Otherwise, feel free to close the issue yourself, or the issue will be automatically closed in 7 days. Thank you! |
Add the node's attributes (config, tags, etc, ...) into a TaskInstance context for retrieval by callback functions in Airflow through the use of `pre_execute` to store these attributes into a task's context. As [this PR](https://github.com/astronomer/astronomer-cosmos/pull/700/files) seems to be closed, and I have a use case for this feature, I attempt to recreate the needed feature. We leverage the `context_merge` utility function from Airflow to merge the extra context into the `Context` object of a `TaskInstance`. Closes #698
Add the node's attributes (config, tags, etc, ...) into a TaskInstance context for retrieval by callback functions in Airflow through the use of `pre_execute` to store these attributes into a task's context. As [this PR](https://github.com/astronomer/astronomer-cosmos/pull/700/files) seems to be closed, and I have a use case for this feature, I attempt to recreate the needed feature. We leverage the `context_merge` utility function from Airflow to merge the extra context into the `Context` object of a `TaskInstance`. Closes astronomer#698
I'm working on integrating a PagerDuty setup with a Cosmos repo:
This works well, but I'd love to be able to have metadata from a model like the
.meta.owner
field or even the tags attached to theContext
object to be able to more intelligently route alerts within my callbacks. Is this possible to implement?The text was updated successfully, but these errors were encountered: