Skip to content

Commit

Permalink
push/pull run cache by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Berenbaum authored and dberenbaum committed May 22, 2024
1 parent e82356b commit 0a813bb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
12 changes: 6 additions & 6 deletions dvc/commands/data_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ def add_parser(subparsers, _parent_parser):
)
pull_parser.add_argument(
"--run-cache",
action="store_true",
default=False,
action=argparse.BooleanOptionalAction,
default=True,
help="Fetch run history for all stages.",
)
pull_parser.add_argument(
Expand Down Expand Up @@ -262,8 +262,8 @@ def add_parser(subparsers, _parent_parser):
)
push_parser.add_argument(
"--run-cache",
action="store_true",
default=False,
action=argparse.BooleanOptionalAction,
default=True,
help="Push run history for all stages.",
)
push_parser.add_argument(
Expand Down Expand Up @@ -324,8 +324,8 @@ def add_parser(subparsers, _parent_parser):
)
fetch_parser.add_argument(
"--run-cache",
action="store_true",
default=False,
action=argparse.BooleanOptionalAction,
default=True,
help="Fetch run history for all stages.",
)
fetch_parser.add_argument(
Expand Down
6 changes: 4 additions & 2 deletions dvc/commands/experiments/pull.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import argparse

from dvc.cli import formatter
from dvc.cli.command import CmdBase
from dvc.cli.utils import append_doc_link
Expand Down Expand Up @@ -81,8 +83,8 @@ def add_parser(experiments_subparsers, parent_parser):
)
experiments_pull_parser.add_argument(
"--run-cache",
action="store_true",
default=False,
action=argparse.BooleanOptionalAction,
default=True,
help="Pull run history for all stages.",
)
experiments_pull_parser.add_argument(
Expand Down
5 changes: 3 additions & 2 deletions dvc/commands/experiments/push.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import argparse
from typing import Any

from dvc.cli import completion, formatter
Expand Down Expand Up @@ -120,8 +121,8 @@ def add_parser(experiments_subparsers, parent_parser):
)
experiments_push_parser.add_argument(
"--run-cache",
action="store_true",
default=False,
action=argparse.BooleanOptionalAction,
default=True,
help="Push run history for all stages.",
)
experiments_push_parser.add_argument(
Expand Down

0 comments on commit 0a813bb

Please sign in to comment.