You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Andy Shinn (JIRA)" <ji...@apache.org> on 2019/07/03 22:42:00 UTC

[jira] [Commented] (AIRFLOW-4494) Unwanted kwarg shell=True in DaskExecutor

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

Andy Shinn commented on AIRFLOW-4494:
-------------------------------------

Is there something preventing this from getting merged? I'm hoping to get this into 1.10.4. The DaskExecutor is broken without this.

> Unwanted kwarg shell=True in DaskExecutor
> -----------------------------------------
>
>                 Key: AIRFLOW-4494
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4494
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: executors
>    Affects Versions: 1.10.3
>            Reporter: GuoJiaqi
>            Priority: Major
>
> This line:
> [https://github.com/apache/airflow/blob/master/airflow/executors/dask_executor.py#L68]
> If {{Popen}} is with {{shell=True}} and args is a list, the first item of list specifies the command string, the other items are the arguments of /bin/sh on POSIX.
> So the command {{airflow run ...}} will raise an error from dask-worker:
> {code:java}
> usage: airflow [-h]
> {backfill,list_dag_runs,list_tasks,clear,pause,unpause,trigger_dag,delete_dag,pool,variables,kerberos,render,run,initdb,list_dags,dag_state,task_failed_deps,task_state,serve_logs,test,webserver,resetdb,upgradedb,scheduler,worker,flower,version,connections,create_user,delete_user,list_users,sync_perm,next_execution,rotate_fernet_key}
> ...
> airflow: error: the following arguments are required: subcommand
> distributed.worker - WARNING - Compute Failed
> Function: airflow_run
> args: ()
> kwargs: {}
> Exception: CalledProcessError(2, ['airflow', 'run', 'tutorial', 'print_date', '2019-05-08T00:00:00+00:00', '--local', '-sd', '/Users/<me>/projects/dask_airflow/.venv/lib/python3.6/site-packages/airflow/example_dags/tutorial.py']){code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)