Skip to content

Commit

Permalink
remove unused change
Browse files Browse the repository at this point in the history
  • Loading branch information
yuli_han authored and yuli_han committed Feb 28, 2024
1 parent ec55e43 commit 7019df4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions api/py/ai/chronon/repo/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def download_only_once(url, path):
@retry_decorator(retries=3, backoff=50)
def download_jar(version, jar_type="uber", release_tag=None, spark_version="2.4.0"):
assert (
spark_version in SUPPORTED_SPARK
spark_version in SUPPORTED_SPARK
), f"Received unsupported spark version {spark_version}. Supported spark versions are {SUPPORTED_SPARK}"
scala_version = SCALA_VERSION_FOR_SPARK[spark_version]
maven_url_prefix = os.environ.get("CHRONON_MAVEN_MIRROR_PREFIX", None)
Expand Down Expand Up @@ -377,7 +377,7 @@ def __init__(self, args, jar_path):
raise e
possible_modes = list(ROUTES[self.conf_type].keys()) + UNIVERSAL_ROUTES
assert (
args.mode in possible_modes
args.mode in possible_modes
), "Invalid mode:{} for conf:{} of type:{}, please choose from {}".format(
args.mode, self.conf, self.conf_type, possible_modes
)
Expand Down Expand Up @@ -453,7 +453,7 @@ def run(self):
)
if self.mode == "streaming":
assert (
len(filtered_apps) == 1
len(filtered_apps) == 1
), "More than one found, please kill them all"
print("All good. No need to start a new app.")
return
Expand Down Expand Up @@ -605,7 +605,7 @@ def set_defaults(parser):
parser.add_argument(
"--online-jar",
help="Jar containing Online KvStore & Deserializer Impl. "
+ "Used for streaming and metadata-upload mode.",
+ "Used for streaming and metadata-upload mode.",
)
parser.add_argument(
"--online-class",
Expand All @@ -622,7 +622,7 @@ def set_defaults(parser):
parser.add_argument(
"--online-jar-fetch",
help="Path to script that can pull online jar. "
+ "This will run only when a file doesn't exist at location specified by online_jar",
+ "This will run only when a file doesn't exist at location specified by online_jar",
)
parser.add_argument(
"--sub-help",
Expand All @@ -647,7 +647,7 @@ def set_defaults(parser):
parser.add_argument(
"--render-info",
help="Path to script rendering additional information of the given config. "
+ "Only applicable when mode is set to info",
+ "Only applicable when mode is set to info",
)
set_defaults(parser)
pre_parse_args, _ = parser.parse_known_args()
Expand Down

0 comments on commit 7019df4

Please sign in to comment.