airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tomasz Urbaszek (Jira)" <j...@apache.org>
Subject [jira] [Commented] (AIRFLOW-6334) Change CommandType in executors to be a dictionary
Date Tue, 24 Dec 2019 10:48:00 GMT

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

Tomasz Urbaszek commented on AIRFLOW-6334:
------------------------------------------

Good point, but the object should be serialisable or have something like "to_dict" option
so we can send the data to a queue.

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

Mime
View raw message