From f054ad44e802b3ee70f13325b80f5bad82b78c16 Mon Sep 17 00:00:00 2001
From: "Ian Grant (aider)" <ian.conway.grant@gmail.com>
Date: Sat, 17 May 2025 10:46:20 -0400
Subject: [PATCH] refactor: remove unused check_interval option from
 run_on_maap.py

refactor: remove unused check_interval attribute from RunConfig class
---
 maap_utils/RunConfig.py |  1 -
 run_on_maap.py          | 10 ----------
 2 files changed, 11 deletions(-)

diff --git a/maap_utils/RunConfig.py b/maap_utils/RunConfig.py
index 5573226..5cfd145 100644
--- a/maap_utils/RunConfig.py
+++ b/maap_utils/RunConfig.py
@@ -19,6 +19,5 @@ class RunConfig:
     boundary: str = None
     date_range: str = None
     job_limit: int = None
-    check_interval: int = 120
     redo_of: str = None
     force_redo: bool = False
diff --git a/run_on_maap.py b/run_on_maap.py
index f1e0376..a6039ab 100644
--- a/run_on_maap.py
+++ b/run_on_maap.py
@@ -102,13 +102,6 @@ maap = MAAP(maap_host="api.maap-project.org")
     "--algo_version", "-v", type=str, required=True, help="Algorithm version to run."
 )
 @click.option("--job_limit", "-j", type=int, help="Limit the number of jobs submitted.")
-@click.option(
-    "--check_interval",
-    "-i",
-    type=int,
-    default=120,
-    help="Time interval (in seconds) between job status checks.",
-)
 @click.option("--redo-of", "-r", type=str, help="Tag of previous run to redo")
 @click.option("--force-redo", is_flag=True, help="Allow redo with same tag")
 @click.option(
@@ -122,7 +115,6 @@ def main(
     boundary: str,
     date_range: str,
     job_limit: int,
-    check_interval: int,
     config: str,
     hse: str,
     k_allom: str,
@@ -144,7 +136,6 @@ def main(
         boundary=boundary,
         date_range=date_range,
         job_limit=job_limit,
-        check_interval=check_interval,
         redo_of=redo_of,
         force_redo=force_redo,
     )
@@ -220,7 +211,6 @@ def main(
     job_manager = JobManager(
         run_config,
         job_kwargs_list,
-        check_interval=run_config.check_interval,
     )
     job_manager.submit(output_dir)
 
-- 
GitLab