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 2021/08/14 15:38:20 UTC

[GitHub] [airflow] potiuk commented on a change in pull request #15330: Add a Docker Taskflow decorator

potiuk commented on a change in pull request #15330:
URL: https://github.com/apache/airflow/pull/15330#discussion_r688943999



##########
File path: airflow/decorators/__init__.pyi
##########
@@ -0,0 +1,105 @@
+from typing import Optional, Callable, Iterable, Dict, Union, List
+
+try:
+    from airflow.providers.docker.decorators.docker import DockerDecoratorMixin
+except ImportError:
+    DockerDecoratorMixin = None
+
+class _TaskDecorator:
+    def __call__(self, *args, **kwargs):
+        try:
+            from airflow.providers.docker.decorators import docker
+
+        except ImportError:
+            pass
+    def python(

Review comment:
       Makes perfect sense!




-- 
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: commits-unsubscribe@airflow.apache.org

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