mik-laj commented on a change in pull request #10677:
URL: https://github.com/apache/airflow/pull/10677#discussion_r483253555



##########
File path: airflow/cli/commands/dag_command.py
##########
@@ -378,6 +379,47 @@ def dag_list_dag_runs(args, dag=None):
     print(table)
 
 
+@cli_utils.action_logging
+def generate_pod_yaml(args):
+    """Generates yaml files for each task in the DAG. Used for testing output 
of KubernetesExecutor"""
+
+    from airflow.executors.kubernetes_executor import 
AirflowKubernetesScheduler, KubeConfig
+    from airflow.kubernetes import pod_generator
+    from airflow.kubernetes.pod_generator import PodGenerator
+    from airflow.kubernetes.worker_configuration import WorkerConfiguration
+    execution_date = datetime.datetime(2020, 11, 3)

Review comment:
       Elsewhere execution_date is required. Should we unify it?
   ```
   usage: airflow tasks test [-h] [-n] [--env-vars ENV_VARS] [-m] [-S SUBDIR]
                             [-t TASK_PARAMS]
                             dag_id task_id execution_date
   ```
   ```
   airflow dags test [-h] [--imgcat-dagrun] [--save-dagrun SAVE_DAGRUN]
                            [--show-dagrun] [-S SUBDIR]
                            dag_id execution_date
   ```
   ```
   usage: airflow tasks run [-h] [--cfg-path CFG_PATH] [-f] [-A] [-i] [-I] [-N]
                            [-l] [-m] [-p PICKLE] [--pool POOL] [--ship-dag]
                            [-S SUBDIR]
                            dag_id task_id execution_date
   ```
   




----------------------------------------------------------------
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:
[email protected]


Reply via email to