Skip to content

Commit

Permalink
Remove the --subdir` arg from the dags pause/unpause command (#46577)
Browse files Browse the repository at this point in the history
The arg didn't actually do anything :)
  • Loading branch information
jedcunningham authored Feb 7, 2025
1 parent 987d5bc commit fd7a1f6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions airflow/cli/cli_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ class GroupCommand(NamedTuple):
"treating the `--dag-id` as a regex pattern."
),
func=lazy_load_command("airflow.cli.commands.remote_commands.dag_command.dag_pause"),
args=(ARG_DAG_ID, ARG_SUBDIR, ARG_TREAT_DAG_ID_AS_REGEX, ARG_YES, ARG_OUTPUT, ARG_VERBOSE),
args=(ARG_DAG_ID, ARG_TREAT_DAG_ID_AS_REGEX, ARG_YES, ARG_OUTPUT, ARG_VERBOSE),
),
ActionCommand(
name="unpause",
Expand All @@ -1106,7 +1106,7 @@ class GroupCommand(NamedTuple):
"treating the `--dag-id` as a regex pattern."
),
func=lazy_load_command("airflow.cli.commands.remote_commands.dag_command.dag_unpause"),
args=(ARG_DAG_ID, ARG_SUBDIR, ARG_TREAT_DAG_ID_AS_REGEX, ARG_YES, ARG_OUTPUT, ARG_VERBOSE),
args=(ARG_DAG_ID, ARG_TREAT_DAG_ID_AS_REGEX, ARG_YES, ARG_OUTPUT, ARG_VERBOSE),
),
ActionCommand(
name="trigger",
Expand Down
7 changes: 6 additions & 1 deletion newsfragments/aip-66.significant.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ The following DAG parsing configuration options were moved into the ``dag_proces
* ``[scheduler] stale_dag_threshold`` → ``[dag_processor] stale_dag_threshold``
* ``[scheduler] print_stats_interval`` → ``[dag_processor] print_stats_interval``

The ``--subdir`` option has been removed from the following commands (it was a noop):

* ``airflow dags pause``
* ``airflow dags unpause``

.. Provide additional contextual information
.. Check the type of change that applies to this change
Expand All @@ -19,7 +24,7 @@ The following DAG parsing configuration options were moved into the ``dag_proces
* [ ] Dag changes
* [x] Config changes
* [ ] API changes
* [ ] CLI changes
* [x] CLI changes
* [ ] Behaviour changes
* [ ] Plugin changes
* [ ] Dependency changes
Expand Down

0 comments on commit fd7a1f6

Please sign in to comment.