uranusjr commented on code in PR #29058:
URL: https://github.com/apache/airflow/pull/29058#discussion_r1090142651
##########
airflow/cli/commands/db_command.py:
##########
@@ -207,3 +207,14 @@ def cleanup_tables(args):
confirm=not args.yes,
skip_archive=args.skip_archive,
)
+
+
+@cli_utils.action_cli(check_db=False)
+def export_archived(args):
+ """Exports archived records from metadata database."""
+ if not os.path.exists(args.output_path):
+ raise AirflowException(f"The specified --output-path
{args.output_path} does not exist.")
Review Comment:
Probably should be an `isdir` check instead? (Also may be a good idea to
mention this should be a directory in the help message and documentation; it
took me a minute to figure that out.)
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]