[ 
https://issues.apache.org/jira/browse/AIRFLOW-6334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17002775#comment-17002775
 ] 

Kamil Bregula commented on AIRFLOW-6334:
----------------------------------------

Why a dictionary? Isn't it better to keep this information in the class? Then 
we will have type information.

> Change CommandType in executors to be a dictionary
> --------------------------------------------------
>
>                 Key: AIRFLOW-6334
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-6334
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: executors
>    Affects Versions: 2.0.0
>            Reporter: Tomasz Urbaszek
>            Priority: Major
>
> Most of the executors run tasks by running 'airflow tasks run ...`. This is 
> achieved by passing  ['airflow', 'tasks', 'run', ...] object to 
> subprocess.check_call. I would love to abandon this limiting type and instead 
> use a dictionary. 
> Then such dictionary could be passed to new method that will run the task 
> without using subprocess.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to