Skip to content

Commit

Permalink
Ignore error on mssql temp removal when cleaning (#32433)
Browse files Browse the repository at this point in the history
When there is a loack of sudo capability, clean command might
return with error. We should ignore it.
  • Loading branch information
potiuk committed Jul 7, 2023
1 parent 869f3a9 commit 8303ad1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dev/breeze/src/airflow_breeze/commands/ci_commands.py
Expand Up @@ -81,9 +81,7 @@ def free_space():
run_command(["docker", "system", "prune", "--all", "--force", "--volumes"])
run_command(["df", "-h"])
run_command(["docker", "logout", "ghcr.io"], check=False)
run_command(
["sudo", "rm", "-f", os.fspath(Path.home() / MSSQL_TMP_DIR_NAME)],
)
run_command(["sudo", "rm", "-f", os.fspath(Path.home() / MSSQL_TMP_DIR_NAME)], check=False)


@ci_group.command(name="resource-check", help="Check if available docker resources are enough.")
Expand Down

0 comments on commit 8303ad1

Please sign in to comment.