Skip to content

Commit 39c9477

Browse files
committed
Change(aws): run job no longer asks for git status
1 parent 80341b7 commit 39c9477

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

aws/run_job.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,12 @@
2121

2222
import boto3
2323

24-
from codeclash.utils.git_utils import get_current_git_branch, has_unpushed_commits, is_git_repo_dirty
24+
from codeclash.utils.git_utils import get_current_git_branch
2525
from codeclash.utils.log import get_logger
2626

2727
logger = get_logger("launch", emoji="🚀")
2828

2929

30-
def check_git_status_and_confirm() -> None:
31-
if not is_git_repo_dirty() and not has_unpushed_commits():
32-
return
33-
34-
if input("Git repository dirty/unpushed, continue anyway? (y/N): ").strip().lower() not in ("y", "yes"):
35-
sys.exit(1)
36-
37-
3830
class AWSBatchJobLauncher:
3931
def __init__(
4032
self,
@@ -167,7 +159,7 @@ def main():
167159
parser.add_argument("--region", default="us-east-1", help="AWS region (default: us-east-1)")
168160
parser.add_argument("--wait", action="store_true", help="Wait for the job to complete before exiting")
169161
parser.add_argument("--show-logs", action="store_true", help="Show job logs after completion (implies --wait)")
170-
parser.add_argument("-y", action="store_true", help="Skip git dirty prompt and continue automatically")
162+
parser.add_argument("-y", action="store_true", help="Legacy")
171163

172164
if "--" in sys.argv:
173165
separator_index = sys.argv.index("--")
@@ -178,9 +170,6 @@ def main():
178170

179171
args = parser.parse_args(aws_args)
180172

181-
if not args.y:
182-
check_git_status_and_confirm()
183-
184173
launcher = AWSBatchJobLauncher(
185174
job_definition_name=args.job_definition, job_queue=args.job_queue, region=args.region
186175
)

0 commit comments

Comments
 (0)