You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/08/24 14:29:27 UTC

[GitHub] [airflow] teaglebuilt opened a new issue #10511: task decorator for identifying functions as tasks

teaglebuilt opened a new issue #10511:
URL: https://github.com/apache/airflow/issues/10511


   
   
   **Description**
   
   A @task decorator to mark functions as tasks during dag run time. 
   
   **Use case / motivation**
   we have one task / function that has functions inside that are not marked as tasks. We want to expose metrics with the airflow - exporter airflow plugin. If we can mark functions as tasks, this would allow for capturing metrics on these functions.
   
   
   
   ```
   @task
   def function():
       pass
   ```
   
   
   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] kaxil commented on issue #10511: task decorator for identifying functions as tasks

Posted by GitBox <gi...@apache.org>.
kaxil commented on issue #10511:
URL: https://github.com/apache/airflow/issues/10511#issuecomment-715628527


   https://airflow.readthedocs.io/en/latest/concepts.html?highlight=Decorated%20Flows#decorated-flows


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] kaxil closed issue #10511: task decorator for identifying functions as tasks

Posted by GitBox <gi...@apache.org>.
kaxil closed issue #10511:
URL: https://github.com/apache/airflow/issues/10511


   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] boring-cyborg[bot] commented on issue #10511: task decorator for identifying functions as tasks

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #10511:
URL: https://github.com/apache/airflow/issues/10511#issuecomment-679161383


   Thanks for opening your first issue here! Be sure to follow the issue template!
   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] kaxil commented on issue #10511: task decorator for identifying functions as tasks

Posted by GitBox <gi...@apache.org>.
kaxil commented on issue #10511:
URL: https://github.com/apache/airflow/issues/10511#issuecomment-715628386


   This is now possible with https://airflow.readthedocs.io/en/latest/tutorial_decorated_flows.html


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org